mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-22 01:57:54 +02:00
Better Error Handling
This commit is contained in:
@@ -31,7 +31,7 @@ module.exports = class TodayCommand extends Command {
|
||||
.setDescription(`${events[random].year}: ${events[random].text}`);
|
||||
return msg.embed(embed);
|
||||
} catch(err) {
|
||||
return msg.say('An Unknown Error Occurred.');
|
||||
return msg.say(`An Error Occurred: ${err}`);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user