Skip to content

Commit

Permalink
add error log on login failure
Browse files Browse the repository at this point in the history
  • Loading branch information
ruddell committed Nov 22, 2021
1 parent 04d7117 commit 03f592b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions generators/app/templates/app/modules/login/login.sagas.js.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ export function * login (api) {
} catch (e) {
let errorMessage = e.type === 'Dismiss' ? 'Login Modal dismissed' : 'Login failed, please try again';
yield put(LoginActions.loginFailure(errorMessage));
if (AppConfig.debugMode) {
console.error(e);
}
}
}
Expand Down

0 comments on commit 03f592b

Please sign in to comment.