changed an error message

This commit is contained in:
loicbersier 2020-02-27 19:28:14 +01:00
parent 06205aac95
commit 195465c0d4

View file

@ -67,7 +67,7 @@ class audio2imageCommand extends Command {
.output(`${os.tmpdir()}/a2i${message.id}.png`) .output(`${os.tmpdir()}/a2i${message.id}.png`)
.on('error', (err, stdout, stderr) => { .on('error', (err, stdout, stderr) => {
console.error(`${err}\n${stdout}\n${stderr}`); console.error(`${err}\n${stdout}\n${stderr}`);
return message.channel.send('Uh oh, an error has occured!'); return message.channel.send('Uh oh, an error has occured! The image size is most likely bigger than the content!');
}) })
.on('end', () => { .on('end', () => {
console.log('finished'); console.log('finished');