ENH: error: exit with the given error number rather than 1

Resolves patch request https://bugs.openfoam.org/view.php?id=2827
This commit is contained in:
Henry Weller
2018-02-06 11:48:15 +00:00
committed by Andrew Heather
parent bab508821e
commit 83d935d517

View File

@ -236,7 +236,7 @@ void Foam::error::exit(const int errNo)
{
Perr<< endl << *this << endl
<< "\nFOAM exiting\n" << endl;
::exit(1);
::exit(errNo);
}
}