Add proper toString to PluginRuntimeError
This commit is contained in:
parent
1ff10aabbe
commit
da1a0a1da1
1 changed files with 4 additions and 0 deletions
|
@ -14,4 +14,8 @@ export class PluginRuntimeError {
|
||||||
[util.inspect.custom](depth, options) {
|
[util.inspect.custom](depth, options) {
|
||||||
return `PRE [${this.pluginName}] [${this.guildId}] ${this.message}`;
|
return `PRE [${this.pluginName}] [${this.guildId}] ${this.message}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
toString() {
|
||||||
|
return this[util.inspect.custom]();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue