From b6a1ba4eabb3914869a42c51c1813a4de3a18520 Mon Sep 17 00:00:00 2001 From: geekgeekrun Date: Wed, 2 Oct 2024 23:24:30 +0800 Subject: [PATCH] rename the error message `CANNOT_FIND_EXCEPT_JOB` to `CANNOT_FIND_EXCEPT_JOB_IN_THIS_JOB_EXPECTATION` --- packages/geek-auto-start-chat-with-boss/index.mjs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 ) {