Skip to content

Commit

Permalink
fix(worker): handle fetch error
Browse files Browse the repository at this point in the history
  • Loading branch information
yjl9903 committed Nov 12, 2023
1 parent 47f6721 commit f233e53
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/worker/src/scheduled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ export async function refreshResources(env: Env) {
}
throw error;
}
if (res.length === 0) {
throw new Error('Failed fetching dmhy resources list');
}

// Check teams and users
{
Expand Down

0 comments on commit f233e53

Please sign in to comment.