Skip to content

Commit

Permalink
Updated default error message
Browse files Browse the repository at this point in the history
  • Loading branch information
bandhan-majumder authored Nov 29, 2024
1 parent ca3f1b1 commit de093f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/errorHandler.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const errorHandler = (a: unknown, error: unknown): void => {
} else if (errorMessage.includes('status code 400')) {
toast.error(tErrors('error400'));

Check warning on line 25 in src/utils/errorHandler.tsx

View check run for this annotation

Codecov / codecov/patch

src/utils/errorHandler.tsx#L25

Added line #L25 was not covered by tests
} else {
toast.error(tErrors('defaultError'));
toast.error(errorMessage);
}
} else {
toast.error(tErrors('unknownError', { msg: error }) as string);
Expand Down

0 comments on commit de093f7

Please sign in to comment.