From d62a8d89e13328de72b6f6c2f935a3feed7c266e Mon Sep 17 00:00:00 2001 From: ccremers Date: Wed, 28 Jul 2004 12:23:42 +0000 Subject: [PATCH] - Of course, errors have a higher priority. --- src/main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index 7e65624..df36682 100644 --- a/src/main.c +++ b/src/main.c @@ -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; }