summaryrefslogtreecommitdiff
path: root/commands.h
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2011-01-02 01:17:21 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2011-01-02 01:17:21 +0100
commit0473fa912e2d2531529fec14a201efa3b20e2ef3 (patch)
tree5fd15e6f3074bf7637ea3f41f995858894dd64ec /commands.h
parent3d5901b73cc4e46e57233ea3ccc9b27ffba4c7df (diff)
Print command name on unknown command.
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();