From da1a0a1da183a6eff2d64b520b27000c0dfac3aa Mon Sep 17 00:00:00 2001 From: Dragory Date: Sat, 9 Feb 2019 14:33:39 +0200 Subject: [PATCH] Add proper toString to PluginRuntimeError --- src/PluginRuntimeError.ts | 4 ++++ 1 file changed, 4 insertions(+) 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](); + } }