aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/salticidae/util.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/salticidae/util.h b/include/salticidae/util.h
index e51f984..05e7b66 100644
--- a/include/salticidae/util.h
+++ b/include/salticidae/util.h
@@ -48,7 +48,9 @@ class SalticidaeError: public std::exception {
public:
SalticidaeError();
SalticidaeError(const std::string &fmt, ...);
- operator std::string() const;
+
+ operator std::string() const { return msg; }
+ const char *what() const throw() override { return msg.c_str(); }
};
class Logger {