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
Commits
72ae1215
Commit
72ae1215
authored
Nov 07, 2018
by
Mark Olesen
Browse files
STYLE: make dictionary error more descriptive (
#1065
)
parent
537e8bf9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/db/dictionary/dictionaryTemplates.C
View file @
72ae1215
...
...
@@ -100,8 +100,7 @@ bool Foam::dictionary::readCompat
else
if
(
mandatory
)
{
FatalIOErrorInFunction
(
*
this
)
<<
"'"
<<
keyword
<<
"' not found in dictionary "
<<
name
()
<<
"Entry '"
<<
keyword
<<
"' not found in dictionary "
<<
name
()
<<
exit
(
FatalIOError
);
}
...
...
@@ -133,9 +132,9 @@ T Foam::dictionary::lookupOrDefault
else
if
(
writeOptionalEntries
)
{
IOInfoInFunction
(
*
this
)
<<
"Optional entry '"
<<
keyword
<<
"' not found,"
<<
" using default value '"
<<
deflt
<<
"'"
<<
end
l
;
<<
"Optional entry '"
<<
keyword
<<
"
' not found,
using default value '"
<<
deflt
<<
"'"
<<
n
l
;
}
return
deflt
;
...
...
@@ -166,9 +165,9 @@ T Foam::dictionary::lookupOrAddDefault
else
if
(
writeOptionalEntries
)
{
IOInfoInFunction
(
*
this
)
<<
"Optional entry '"
<<
keyword
<<
"' not found,"
<<
" adding default value '"
<<
deflt
<<
"'"
<<
end
l
;
<<
"Optional entry '"
<<
keyword
<<
"
' not found,
adding default value '"
<<
deflt
<<
"'"
<<
n
l
;
}
add
(
new
primitiveEntry
(
keyword
,
deflt
));
...
...
@@ -199,8 +198,7 @@ bool Foam::dictionary::readEntry
else
if
(
mandatory
)
{
FatalIOErrorInFunction
(
*
this
)
<<
"'"
<<
keyword
<<
"' not found in dictionary "
<<
name
()
<<
"Entry '"
<<
keyword
<<
"' not found in dictionary "
<<
name
()
<<
exit
(
FatalIOError
);
}
...
...
@@ -248,7 +246,7 @@ T Foam::dictionary::lookupOrDefaultCompat
IOInfoInFunction
(
*
this
)
<<
"Optional entry '"
<<
keyword
<<
"' not found,"
<<
" using default value '"
<<
deflt
<<
"'"
<<
end
l
;
<<
n
l
;
}
return
deflt
;
...
...
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