mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 14:19:11 +02:00
Improve Errors
This commit is contained in:
@@ -47,7 +47,7 @@ module.exports = class MapCommand extends Command {
|
||||
return msg.say({ files: [{ attachment: body, name: 'map.png' }] })
|
||||
.catch(() => msg.say('An Error Occurred while sending the image.'));
|
||||
} catch (err) {
|
||||
return msg.say('An Error Occurred. There were most likely no results.');
|
||||
return msg.say(err.message);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user