From cbd7ad85e785bf69b5bdbd84743fea92e2dfe001 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Fri, 21 Feb 2020 21:15:11 +0100 Subject: [PATCH] log error --- commands/images/meme.js | 1 + commands/images/poster.js | 1 + 2 files changed, 2 insertions(+) diff --git a/commands/images/meme.js b/commands/images/meme.js index 3e5503b3..d85dadd7 100644 --- a/commands/images/meme.js +++ b/commands/images/meme.js @@ -78,6 +78,7 @@ class memeCommand extends Command { img.format(function(err, format) { if (err) { + console.error(err); return message.channel.send('An error has occured, is it an image?'); } let output = `${os.tmpdir()}/meme${message.id}.${format.toLocaleLowerCase()}`; diff --git a/commands/images/poster.js b/commands/images/poster.js index 2592873a..5964cf95 100644 --- a/commands/images/poster.js +++ b/commands/images/poster.js @@ -94,6 +94,7 @@ class posterCommand extends Command { img.format(function(err, format) { if (err) { + console.error(err); return message.channel.send('An error has occured, is it an image?'); } let output = `${os.tmpdir()}/poster${message.id}.${format.toLocaleLowerCase()}`;