forgot to catch an error

merge-requests/4/head
loicbersier 5 years ago
parent 6aa0640a90
commit c4cc7f72cc

@ -77,6 +77,11 @@ class vidshittifierCommand extends Command {
loadingmsg.delete();
return message.channel.send('On no! an error just occured! perhaps the file is too big?');
});
})
.catch(err => {
console.error(err);
loadingmsg.delete();
return message.channel.send('On no! an error just occured! Im gonna be honest with you, i don\'t know what caused it yet! but worry not! my owner wil look into it soon!');
});
}
}

Loading…
Cancel
Save