Skip to content

Commit

Permalink
Merge pull request #189 from Ritika-Patel08/login-errorhandling
Browse files Browse the repository at this point in the history
Fixed: error handling in login process in case of object in error (dxp-258)
  • Loading branch information
ravilodhi authored Mar 15, 2024
2 parents cbe6bf4 + 47ea300 commit c0e58f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/modules/user/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const actions: ActionTree<UserState, RootState> = {
// TODO Check if handling of specific status codes is required.
showToast(translate('Something went wrong while login. Please contact administrator.'));
logger.error("error: ", err.toString());
return Promise.reject(new Error(err))
return Promise.reject(err instanceof Object ? err : new Error(err));
}
},

Expand Down

0 comments on commit c0e58f8

Please sign in to comment.