Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
amdis
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
iwr
amdis
Commits
056ba66e
Commit
056ba66e
authored
9 years ago
by
Naumann, Andreas
Browse files
Options
Downloads
Patches
Plain Diff
Initfile throws error with break on missing tag and debuglevel greater than 2
parent
e14c659f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
AMDiS/src/Initfile.h
+5
-7
5 additions, 7 deletions
AMDiS/src/Initfile.h
with
5 additions
and
7 deletions
AMDiS/src/Initfile.h
+
5
−
7
View file @
056ba66e
...
...
@@ -444,20 +444,18 @@ namespace AMDiS {
valStr
=
trim
(
valStr
);
detail
::
convert
(
valStr
,
value
);
}
}
catch
(
mu
::
ParserError
&
e
)
{
std
::
string
parser_error
=
"Could not parse: "
+
tag
;
throw
std
::
runtime_error
(
parser_error
);
}
/*
else if(error_code == TAG_NOT_FOUND_BREAK)
else
if
(
error_code
==
TAG_NOT_FOUND_BREAK
)
throw
TagNotFoundBreak
(
"required tag '"
+
tag
+
"' not found"
);
else
if
(
error_code
==
TAG_NOT_FOUND
)
{
if
(
debugInfo
==
2
)
std
::
cout
<<
"there is no tag '"
+
tag
+
"'"
<<
std
::
endl
;
}
else
throw
std
::
runtime_error
(
"unknown error_code ("
+
boost
::
lexical_cast
<
std
::
string
>
(
error_code
)
+
") returned for tag '"
+
tag
+
"'"
);
*/
}
catch
(
mu
::
ParserError
&
e
)
{
std
::
string
parser_error
=
"Could not parse: "
+
tag
;
throw
std
::
runtime_error
(
parser_error
);
}
if
(
debugInfo
==
2
)
{
std
::
cout
<<
"Parameter '"
<<
tag
<<
"'"
<<
" initialized with: "
<<
value
<<
std
::
endl
;
...
...
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