Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openfoam
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
openfoam
Commits
72ae1215
Commit
72ae1215
authored
6 years ago
by
Mark OLESEN
Browse files
Options
Downloads
Patches
Plain Diff
STYLE: make dictionary error more descriptive (
#1065
)
parent
537e8bf9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/OpenFOAM/db/dictionary/dictionaryTemplates.C
+9
-11
9 additions, 11 deletions
src/OpenFOAM/db/dictionary/dictionaryTemplates.C
with
9 additions
and
11 deletions
src/OpenFOAM/db/dictionary/dictionaryTemplates.C
+
9
−
11
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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment