From a0fe4dc5fa6da740afeb14bf5843f4b088143b7b Mon Sep 17 00:00:00 2001 From: Snazzah Date: Wed, 12 Aug 2020 02:40:39 -0500 Subject: [PATCH] Clarify error message --- src/structures/Command.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/structures/Command.js b/src/structures/Command.js index 0432d6c..aa33817 100644 --- a/src/structures/Command.js +++ b/src/structures/Command.js @@ -87,7 +87,8 @@ class Command { const error = response.status === 500 ? { message: 'Internal server error' } : json.error; console.error(`SDK error in ${this.name}:${message.author.id}`, response, error); - await message.channel.createMessage(`LBRY-SDK returned ${response.status}.\n${error.message}`); + await message.channel.createMessage( + `LBRY-SDK returned ${response.status} witn an error: \`${error.message}\``); return true; } return false;