Set main() to return 100, not errmsg, if run has fatal error

This commit is contained in:
Lew Rossman
2018-12-07 11:41:37 -05:00
parent e2ee4564a8
commit 6783b68e4f

View File

@@ -7,7 +7,7 @@
Authors: see AUTHORS Authors: see AUTHORS
Copyright: see AUTHORS Copyright: see AUTHORS
License: see LICENSE License: see LICENSE
Last Updated: 12/06/2018 Last Updated: 12/07/2018
****************************************************************************** ******************************************************************************
*/ */
@@ -87,7 +87,7 @@ int main(int argc, char *argv[])
else else
{ {
ENgeterror(errcode, errmsg, 255); ENgeterror(errcode, errmsg, 255);
printf("\n... EPANET failed with ERROR %d: %s.\n", errcode, errmsg); printf("\n... EPANET failed with %s.\n", errmsg);
return errcode; return 100;
} }
} }