Skip to content
Snippets Groups Projects
Commit 972bbd35 authored by mattijs's avatar mattijs
Browse files

ENH: wmkdep: improved error message

parent feb73354
Branches
Tags
No related merge requests found
......@@ -3,7 +3,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\/ M anipulation |
------------------------------------------------------------------------------
License
......@@ -333,12 +333,24 @@ void nextFile(const char* fileName)
free(pathName);
}
fprintf
(
stderr,
"could not open file %s for source file %s\n",
fileName, sourceFile
);
if (nDirectories == 0)
{
fprintf
(
stderr,
"could not open file %s for source file %s\n",
fileName, sourceFile
);
}
else
{
fprintf
(
stderr,
"could not open file %s for source file %s due to %s\n",
fileName, sourceFile, strerror(errno)
);
}
fflush(stdout);
fflush(stderr);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment