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
Branches
Tags
No related merge requests found
......@@ -19,6 +19,7 @@ namespace teqp {
const int code;
const std::string msg;
teqpException(int code, const std::string& msg) : code(code), msg(msg) {};
public:
const char* what() const noexcept override {
return msg.c_str();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment