diff options
| author | rr- | 2017-01-08 02:12:38 +0100 |
|---|---|---|
| committer | rr- | 2017-01-08 10:25:29 +0100 |
| commit | 8a73f7e400930c648223e510090d5677120a472e (patch) | |
| tree | 9fe3f1a08107ace10b15dc182219507a720f7e5c /client/js/controllers/auth_controller.js | |
| parent | 5c0765c30e111ed28b275e2575280ce4d399a8e2 (diff) | |
client: rework promise error handling
Diffstat (limited to 'client/js/controllers/auth_controller.js')
| -rw-r--r-- | client/js/controllers/auth_controller.js | 4 |
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(); }); } |