Add proper toString to PluginRuntimeError

This commit is contained in:
Dragory 2019-02-09 14:33:39 +02:00
parent 1ff10aabbe
commit da1a0a1da1

View file

@ -14,4 +14,8 @@ export class PluginRuntimeError {
[util.inspect.custom](depth, options) {
return `PRE [${this.pluginName}] [${this.guildId}] ${this.message}`;
}
toString() {
return this[util.inspect.custom]();
}
}