Commit be1310ec authored by Steffen Vogel's avatar Steffen Vogel 🎅🏼
Browse files

exceptions: show config error

parent 9a986194
...@@ -108,14 +108,15 @@ protected: ...@@ -108,14 +108,15 @@ protected:
std::stringstream ss; std::stringstream ss;
ss << std::runtime_error::what() << std::endl; 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) { if (error.position >= 0) {
ss << std::endl; 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; ss << std::endl;
return ss.str(); return ss.str();
...@@ -157,8 +158,6 @@ public: ...@@ -157,8 +158,6 @@ public:
setting(s), setting(s),
error(e) error(e)
{ {
error.position = -1;
msg = strdup(getMessage().c_str()); msg = strdup(getMessage().c_str());
} }
...@@ -169,8 +168,6 @@ public: ...@@ -169,8 +168,6 @@ public:
setting(s), setting(s),
error(e) error(e)
{ {
error.position = -1;
msg = strdup(getMessage().c_str()); msg = strdup(getMessage().c_str());
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment