trunk preprocessor: fixed bug when loading non-existent steady-state file

git-svn-id: https://www.dynare.org/svn/dynare/trunk@2753 ac1d8469-bf42-47a9-8791-bf33cf982152
time-shift
sebastien 2009-06-10 14:45:41 +00:00
parent 3533753c99
commit cbbaf112e3
1 changed files with 1 additions and 1 deletions

View File

@ -255,7 +255,7 @@ LoadParamsAndSteadyStateStatement::LoadParamsAndSteadyStateStatement(const strin
ifstream f;
f.open(filename.c_str(), ios::in);
if (f.bad())
if (f.fail())
{
cerr << "ERROR: Can't open " << filename << endl;
exit(EXIT_FAILURE);