diff --git a/packages/geek-auto-start-chat-with-boss/index.mjs b/packages/geek-auto-start-chat-with-boss/index.mjs index ec4ce5d..615d594 100644 --- a/packages/geek-auto-start-chat-with-boss/index.mjs +++ b/packages/geek-auto-start-chat-with-boss/index.mjs @@ -303,7 +303,7 @@ async function toRecommendPage (hooks) { if (tempTargetJobIndexToCheckDetail < 0 && hasReachLastPage) { // has reach last page and not find target job - reject(new Error('CANNOT_FIND_EXCEPT_JOB')) + reject(new Error('CANNOT_FIND_EXCEPT_JOB_IN_THIS_JOB_EXPECTATION')) return } @@ -376,7 +376,7 @@ async function toRecommendPage (hooks) { if (targetJobIndex < 0 && hasReachLastPage) { // has reach last page and not find target job - reject(new Error('CANNOT_FIND_EXCEPT_JOB')) + reject(new Error('CANNOT_FIND_EXCEPT_JOB_IN_THIS_JOB_EXPECTATION')) return } } @@ -434,7 +434,7 @@ async function toRecommendPage (hooks) { } catch (err) { if (err instanceof Error) { switch (err.message) { - case 'CANNOT_FIND_EXCEPT_JOB': { + case 'CANNOT_FIND_EXCEPT_JOB_IN_THIS_JOB_EXPECTATION': { if ( currentExceptJobIndex + 1 > expectJobList.length ) {