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
parent 73e9b2804f
commit e0cd2062ad

View File

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