mirror of
https://github.com/LBRYFoundation/curate.git
synced 2025-08-23 17:37:25 +00:00
Clarify error message
This commit is contained in:
parent
0432967787
commit
a0fe4dc5fa
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue