Correctly set the exit code.

committer: mfx <mfx> 1027556018 +0000
This commit is contained in:
Markus F.X.J. Oberhumer
2002-07-25 00:13:38 +00:00
parent f1ccb85658
commit 7e06892ad7
2 changed files with 1 additions and 1 deletions
+1
View File
@@ -280,6 +280,7 @@ void do_files(int i, int argc, char *argv[])
unlink_ofile(oname);
if (opt->verbose >= 2 || (opt->verbose >= 1 && !e.isWarning()))
printErr(iname,&e);
set_ec(e.isWarning() ? EXIT_WARN : EXIT_ERROR);
} catch (const Error &e) {
unlink_ofile(oname);
printErr(iname,&e);