浏览代码

fix error message

zahmis 5 年之前
父节点
当前提交
72d429eaf3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/slack/src/utils/check-communicable.ts

+ 1 - 1
packages/slack/src/utils/check-communicable.ts

@@ -49,7 +49,7 @@ const checkSlackScopes = (resultTestSlackApiServer: any) => {
   const isPassedScopeCheck = correctScopes.every(e => slackScopes.includes(e));
 
   if (!isPassedScopeCheck) {
-    throw new Error('Scope error');
+    throw new Error('The scopes is not appropriate. Required scopes is [Rcommands], [team:read], and [chat:write].');
   }
 };