Skip to content

Commit

Permalink
fix(sudt): explorer error
Browse files Browse the repository at this point in the history
  • Loading branch information
Daryl-L committed Jan 8, 2024
1 parent 9d3c7fb commit d81b797
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/samples/sudt/src/services/explorer.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ export class ExplorerService {

switch (Math.ceil(res.status / 100)) {
case 2:
return true
case 3:
throw new Error('Redirect')
return true
case 4:
throw new Error('Client Error')
case 5:
throw new Error(`${res.status}, ${res.statusText}`)
}
}
}

0 comments on commit d81b797

Please sign in to comment.