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
@@ -45,9 +45,9 @@ module.exports = class MapCommand extends Command {
key: GOOGLE_KEY
});
return msg.say({ files: [{ attachment: body, name: 'map.png' }] })
.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. There were most likely no results.');
}
}
};