aboutsummaryrefslogtreecommitdiff
path: root/client/js/controllers/auth_controller.js
diff options
context:
space:
mode:
authorrr-2017-01-08 02:12:38 +0100
committerrr-2017-01-08 10:25:29 +0100
commit8a73f7e400930c648223e510090d5677120a472e (patch)
tree9fe3f1a08107ace10b15dc182219507a720f7e5c /client/js/controllers/auth_controller.js
parent5c0765c30e111ed28b275e2575280ce4d399a8e2 (diff)
client: rework promise error handling
Diffstat (limited to 'client/js/controllers/auth_controller.js')
-rw-r--r--client/js/controllers/auth_controller.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/js/controllers/auth_controller.js b/client/js/controllers/auth_controller.js
index e2fe4c9..42e6c0a 100644
--- a/client/js/controllers/auth_controller.js
+++ b/client/js/controllers/auth_controller.js
@@ -23,8 +23,8 @@ class LoginController {
.then(() => {
const ctx = router.show('/');
ctx.controller.showSuccess('Logged in');
- }, errorMessage => {
- this._loginView.showError(errorMessage);
+ }, error => {
+ this._loginView.showError(error.message);
this._loginView.enableForm();
});
}

© 2015 - 2026 Jakob L. Kreuze