mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
exceptions: show config error
This commit is contained in:
parent
07d3783035
commit
e90dc976a1
1 changed files with 4 additions and 7 deletions
|
@ -108,14 +108,15 @@ protected:
|
|||
std::stringstream ss;
|
||||
|
||||
ss << std::runtime_error::what() << std::endl;
|
||||
ss << std::endl << " Please consult the user documentation for details: " << std::endl;
|
||||
ss << " " << docUri();
|
||||
|
||||
if (error.position >= 0) {
|
||||
ss << std::endl;
|
||||
ss << " " << error.text << " in " << error.source << ":" << error.line << ":" << error.column;
|
||||
ss << " " << error.text << " in " << error.source << ":" << error.line << ":" << error.column << std::endl;
|
||||
}
|
||||
|
||||
ss << std::endl << " Please consult the user documentation for details: " << std::endl;
|
||||
ss << " " << docUri();
|
||||
|
||||
ss << std::endl;
|
||||
|
||||
return ss.str();
|
||||
|
@ -157,8 +158,6 @@ public:
|
|||
setting(s),
|
||||
error(e)
|
||||
{
|
||||
error.position = -1;
|
||||
|
||||
msg = strdup(getMessage().c_str());
|
||||
}
|
||||
|
||||
|
@ -169,8 +168,6 @@ public:
|
|||
setting(s),
|
||||
error(e)
|
||||
{
|
||||
error.position = -1;
|
||||
|
||||
msg = strdup(getMessage().c_str());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue