Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
iwr
amdis
Commits
056ba66e
Commit
056ba66e
authored
Jan 18, 2016
by
Naumann, Andreas
Browse files
Initfile throws error with break on missing tag and debuglevel greater than 2
parent
e14c659f
Changes
1
Hide whitespace changes
Inline
Side-by-side
AMDiS/src/Initfile.h
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
;
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment