Skip to content

Commit

Permalink
Improved error handling for pubg command
Browse files Browse the repository at this point in the history
  • Loading branch information
Sankarsan Kampa committed Jan 19, 2018
1 parent e334bab commit 872ab24
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/game_stats/pubg.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,9 @@ exports.exec = async (Bastion, message, args) => {
Bastion.log.error(e);
});
}
else if (response.error) {
Bastion.emit('error', 'PUBG API:', response.error, message.channel);
}
else {
Bastion.log.error(response);
}
Expand Down

0 comments on commit 872ab24

Please sign in to comment.