diff --git a/lib/SlackBot.js b/lib/SlackBot.js index fff75229e..f2fa292f8 100755 --- a/lib/SlackBot.js +++ b/lib/SlackBot.js @@ -168,6 +168,8 @@ function Slackbot(configuration) { cb(null, found_team); } }); + } else { + cb(new Error(`could not find team ${team_id}`)); } } });