diff --git a/src/PluginRuntimeError.ts b/src/PluginRuntimeError.ts index ac2e7d16..b5364c70 100644 --- a/src/PluginRuntimeError.ts +++ b/src/PluginRuntimeError.ts @@ -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](); + } }