forked from Supositware/Haha-Yes
log error
This commit is contained in:
parent
48acabf3a6
commit
cbd7ad85e7
2 changed files with 2 additions and 0 deletions
|
@ -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()}`;
|
||||
|
|
|
@ -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()}`;
|
||||
|
|
Loading…
Reference in a new issue