mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-21 05:54:33 +02:00
Better Error Handling
This commit is contained in:
@@ -41,7 +41,7 @@ module.exports = class MapCommand extends Command {
|
||||
return msg.channel.send({ files: [{ attachment: body, name: 'map.png' }] })
|
||||
.catch(err => msg.say(`An Error Occurred: ${err}`));
|
||||
} catch(err) {
|
||||
return msg.say('An Error Occurred. The location may not have been found.');
|
||||
return msg.say(`An Error Occurred: ${err}`);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user