Still throw errors in pokemon fetch if it's not a 404

This commit is contained in:
Dragon Fire
2020-03-24 15:09:34 -04:00
parent 045176f799
commit aec89a28c7
3 changed files with 4 additions and 4 deletions
-1
View File
@@ -52,7 +52,6 @@ module.exports = class PokedexCommand extends Command {
.setThumbnail(data.spriteImageURL);
return msg.embed(embed);
} catch (err) {
if (err.status === 404) return msg.say('Could not find any results.');
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
}
}