Improve command error reporting
state.error is expected to be a String, not an Error.
This commit is contained in:
@@ -160,7 +160,7 @@ export default {
|
||||
try {
|
||||
msg = irc.parseMessage(args.join(" "));
|
||||
} catch (err) {
|
||||
throw new Error("failed to parse IRC command: " + err.message);
|
||||
throw new Error("Failed to parse IRC command: " + err.message);
|
||||
}
|
||||
getActiveClient(app).send(msg);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user