Fix Error Messages

This commit is contained in:
Daniel Odendahl Jr
2017-05-16 12:17:52 +00:00
parent a140a30fcc
commit 897978ef73
46 changed files with 53 additions and 53 deletions
+2 -2
View File
@@ -20,9 +20,9 @@ module.exports = class CatCommand extends Command {
const { body } = await snekfetch
.get('http://random.cat/meow');
return msg.say({ files: [body.file] })
.catch(err => msg.say(err));
.catch(() => msg.say('An Error Occurred while sending the image.'));
} catch (err) {
return msg.say(err);
return msg.say('An Error Occurred.');
}
}
};