Begin migrating away from stupid "Oh no, an error occurred!"

This commit is contained in:
Dragon Fire
2024-03-29 23:57:49 -04:00
parent 067545b818
commit 0b807767d1
130 changed files with 1692 additions and 2190 deletions
+1 -1
View File
@@ -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;
}
}
};