Skip to content
Snippets Groups Projects
Commit aa688b9f authored by Ian Bell's avatar Ian Bell
Browse files

Make error message accessible from teqp exceptions

parent af6c3ac2
No related branches found
No related tags found
No related merge requests found
...@@ -19,6 +19,7 @@ namespace teqp { ...@@ -19,6 +19,7 @@ namespace teqp {
const int code; const int code;
const std::string msg; const std::string msg;
teqpException(int code, const std::string& msg) : code(code), msg(msg) {}; teqpException(int code, const std::string& msg) : code(code), msg(msg) {};
public:
const char* what() const noexcept override { const char* what() const noexcept override {
return msg.c_str(); return msg.c_str();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment