mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-24 22:34:46 +02:00
Begin migrating away from stupid "Oh no, an error occurred!"
This commit is contained in:
@@ -41,7 +41,7 @@ module.exports = class ShortenUrlCommand extends Command {
|
||||
return msg.say(body.link);
|
||||
} catch (err) {
|
||||
if (err.status === 400) return msg.reply('You provided an invalid URL. Please try again.');
|
||||
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
|
||||
throw err;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user