Browse Source

throw slackNotificationService has not been set up

itizawa 5 years ago
parent
commit
f478c8efbd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/server/service/user-notification/index.js

+ 1 - 1
src/server/service/user-notification/index.js

@@ -35,7 +35,7 @@ class UserNotificationService {
     }
 
     if (!slackNotificationService.hasSlackConfig()) {
-      return;
+      throw new Error('slackNotificationService has not been set up');
     }
 
     // "dev,slacktest" => [dev,slacktest]