summaryrefslogtreecommitdiff
path: root/commands.h
diff options
context:
space:
mode:
Diffstat (limited to 'commands.h')
-rw-r--r--commands.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/commands.h b/commands.h
index bc4092f..42a9452 100644
--- a/commands.h
+++ b/commands.h
@@ -15,6 +15,7 @@ namespace commands {
class CommandException : public std::runtime_error {
public:
CommandException(const char *s) : std::runtime_error(s) {};
+ CommandException(std::string s) : std::runtime_error(s.c_str()) {};
};
void init();