Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
OpenFOAM-plus
Commits
b7f3ca53
Commit
b7f3ca53
authored
Mar 28, 2018
by
mattijs
Browse files
ENH: wmkdep: better error message. See
#784
.
parent
52bc274b
Changes
1
Hide whitespace changes
Inline
Side-by-side
wmake/src/wmkdep.l
View file @
b7f3ca53
...
...
@@ -4,7 +4,7 @@
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | Copyright (C) 2017 OpenCFD Ltd.
\\/ M anipulation | Copyright (C) 2017
-2018
OpenCFD Ltd.
------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
...
...
@@ -471,6 +471,17 @@ static FILE* fopen_file(const char* dirName, const char* fileName)
file = fopen(fullName, "r");
if (!file && errno == EMFILE)
{
fprintf
(
stderr,
EXENAME ": too many open files while opening '%s'\n"
"Please change your open descriptor limit\n",
fullName
);
}
if (file)
{
print_fileName(fullName);
...
...
@@ -482,6 +493,17 @@ static FILE* fopen_file(const char* dirName, const char* fileName)
{
file = fopen(fileName, "r");
if (!file && errno == EMFILE)
{
fprintf
(
stderr,
EXENAME ": too many open files while opening '%s'\n"
"Please change your open descriptor limit\n",
fileName
);
}
if (file)
{
print_fileName(fileName);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment