mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
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:
@ -200,7 +200,7 @@ void Foam::error::exit(const int errNo)
|
||||
{
|
||||
Perr<< endl << *this << endl
|
||||
<< "\nFOAM exiting\n" << endl;
|
||||
::exit(1);
|
||||
::exit(errNo);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user