Explorar o código

throw new err

itizawa %!s(int64=5) %!d(string=hai) anos
pai
achega
9cf7d0c1ef
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 {