- Of course, errors have a higher priority.

This commit is contained in:
ccremers 2004-07-28 12:23:42 +00:00
parent 42e5efedac
commit d62a8d89e1

View File

@ -467,8 +467,9 @@ main (int argc, char **argv)
if (sys->latex)
latexDone (sys);
/* transfer any scenario counting to the exit code */
if (sys->switchScenario < 0)
/* Transfer any scenario counting to the exit code,
* assuming that there is no error. */
if (exitcode != 1 && sys->switchScenario < 0)
{
exitcode = sys->countScenario;
}