From ec3c11d8cfee09fb4d861ff5f6ebf0bddcf8097c Mon Sep 17 00:00:00 2001 From: Alec Lazarescu Date: Sat, 17 Jun 2017 21:06:33 -0400 Subject: [PATCH] Add missing error callback from team not found --- lib/SlackBot.js | 2 ++ 1 file changed, 2 insertions(+) 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}`)); } } });