mirror of
https://github.com/geekgeekrun/geekgeekrun.git
synced 2026-09-08 08:57:24 +08:00
rename the error message CANNOT_FIND_EXCEPT_JOB to CANNOT_FIND_EXCEPT_JOB_IN_THIS_JOB_EXPECTATION
This commit is contained in:
@@ -303,7 +303,7 @@ async function toRecommendPage (hooks) {
|
|||||||
|
|
||||||
if (tempTargetJobIndexToCheckDetail < 0 && hasReachLastPage) {
|
if (tempTargetJobIndexToCheckDetail < 0 && hasReachLastPage) {
|
||||||
// has reach last page and not find target job
|
// 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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -376,7 +376,7 @@ async function toRecommendPage (hooks) {
|
|||||||
|
|
||||||
if (targetJobIndex < 0 && hasReachLastPage) {
|
if (targetJobIndex < 0 && hasReachLastPage) {
|
||||||
// has reach last page and not find target job
|
// 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
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -434,7 +434,7 @@ async function toRecommendPage (hooks) {
|
|||||||
} catch (err) {
|
} catch (err) {
|
||||||
if (err instanceof Error) {
|
if (err instanceof Error) {
|
||||||
switch (err.message) {
|
switch (err.message) {
|
||||||
case 'CANNOT_FIND_EXCEPT_JOB': {
|
case 'CANNOT_FIND_EXCEPT_JOB_IN_THIS_JOB_EXPECTATION': {
|
||||||
if (
|
if (
|
||||||
currentExceptJobIndex + 1 > expectJobList.length
|
currentExceptJobIndex + 1 > expectJobList.length
|
||||||
) {
|
) {
|
||||||
|
|||||||
Reference in New Issue
Block a user