forgot to catch an error

This commit is contained in:
loicbersier 2019-10-12 17:08:18 +02:00
parent 6aa0640a90
commit c4cc7f72cc

View file

@ -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!');
});
}
}