Parcourir la source

throw new err

itizawa il y a 5 ans
Parent
commit
9cf7d0c1ef
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      packages/slackbot-proxy/src/controllers/slack.ts

+ 1 - 1
packages/slackbot-proxy/src/controllers/slack.ts

@@ -223,7 +223,7 @@ export class SlackCtrl {
     const relation = await this.relationRepository.findOne({ installation, growiUri });
 
     if (relation == null) {
-      return;
+      throw new Error('Relation is not found');
     }
 
     try {