mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
committed by
Andrew Heather
parent
bab508821e
commit
83d935d517
@ -236,7 +236,7 @@ void Foam::error::exit(const int errNo)
|
|||||||
{
|
{
|
||||||
Perr<< endl << *this << endl
|
Perr<< endl << *this << endl
|
||||||
<< "\nFOAM exiting\n" << endl;
|
<< "\nFOAM exiting\n" << endl;
|
||||||
::exit(1);
|
::exit(errNo);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user