Set main() to return 100, not errmsg, if run has fatal error
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user