Skip to content
Snippets Groups Projects
Commit 80b2376b authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

*** empty log message ***

parent f8eb7b3a
No related branches found
No related tags found
No related merge requests found
......@@ -146,7 +146,8 @@ int ParseFile(std::string fileName, bool close, bool warnIfMissing)
// fsetpos/fgetpos (used e.g. for user-defined functions)
FILE *fp;
if(!(fp = fopen(fileName.c_str(), "rb"))){
if(warnIfMissing) Msg::Warning("Unable to open file '%s'", fileName.c_str());
if(warnIfMissing)
Msg::Warning("Unable to open file '%s'", fileName.c_str());
return 0;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment