Skip to content

Commit

Permalink
chore: update isRouteErrorResponse description (#12189)
Browse files Browse the repository at this point in the history
  • Loading branch information
ttys026 authored Oct 25, 2024
1 parent cf7e216 commit fd7365d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -284,3 +284,4 @@
- yuleicul
- zeromask1337
- zheng-chuang
- ttys026
3 changes: 1 addition & 2 deletions packages/router/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1693,8 +1693,7 @@ export class ErrorResponseImpl implements ErrorResponse {
}

/**
* Check if the given error is an ErrorResponse generated from a 4xx/5xx
* Response thrown from an action/loader
* Check if the given error is an ErrorResponse thrown from an action/loader
*/
export function isRouteErrorResponse(error: any): error is ErrorResponse {
return (
Expand Down

0 comments on commit fd7365d

Please sign in to comment.