From 6783b68e4f163c26bde4d7d823244bb4fc41368b Mon Sep 17 00:00:00 2001 From: Lew Rossman Date: Fri, 7 Dec 2018 11:41:37 -0500 Subject: [PATCH] Set main() to return 100, not errmsg, if run has fatal error --- run/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/run/main.c b/run/main.c index d08cdce..793fffa 100644 --- a/run/main.c +++ b/run/main.c @@ -7,7 +7,7 @@ Authors: see AUTHORS Copyright: see AUTHORS License: see LICENSE - Last Updated: 12/06/2018 + Last Updated: 12/07/2018 ****************************************************************************** */ @@ -87,7 +87,7 @@ int main(int argc, char *argv[]) else { ENgeterror(errcode, errmsg, 255); - printf("\n... EPANET failed with ERROR %d: %s.\n", errcode, errmsg); - return errcode; + printf("\n... EPANET failed with %s.\n", errmsg); + return 100; } }