STYLE: updated error message

This commit is contained in:
andy
2012-08-20 12:23:38 +01:00
parent 35936a4f89
commit aec98e58c2

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -73,26 +73,18 @@ void Foam::systemCall::read(const dictionary& dict)
} }
else if (!dynamicCode::allowSystemOperations) else if (!dynamicCode::allowSystemOperations)
{ {
FatalErrorIn FatalErrorIn("systemCall::read(const dictionary&)")
( << "Executing user-supplied system calls is not enabled by "
"systemCall::read(const dictionary&)" << "default because of " << nl
) << "Executing user-supplied system calls is not" << "security issues. If you trust the case you can enable this "
<< " enabled by default" << endl << "facility by " << nl
<< "because of security issues. If you trust the case you can" << "adding to the InfoSwitches setting in the system controlDict:"
<< " enable this" << endl << nl << nl
<< "facility be adding to the InfoSwitches setting in the system" << " allowSystemOperations 1" << nl << nl
<< " controlDict:" << endl << "The system controlDict is either" << nl << nl
<< endl << " ~/.OpenFOAM/$WM_PROJECT_VERSION/controlDict" << nl << nl
<< " allowSystemOperations 1" << endl << "or" << nl << nl
<< endl << " $WM_PROJECT_DIR/etc/controlDict" << nl << nl
<< "The system controlDict is either" << endl
<< endl
<< " ~/.OpenFOAM/$WM_PROJECT_VERSION/controlDict" << endl
<< endl
<< "or" << endl
<< endl
<< " $WM_PROJECT_DIR/etc/controlDict" << endl
<< endl
<< exit(FatalError); << exit(FatalError);
} }
} }