[O] Show errors properly

This commit is contained in:
Hykilpikonna
2019-12-02 14:01:43 -05:00
parent 63891a8385
commit 7f07c7d3d6
+3 -7
View File
@@ -95,19 +95,15 @@ export default class Login extends Vue
} }
else else
{ {
// Show error message // Show error message & allow user to retry
this.error = response.data; this.error = response.data;
// Allow the user to retry
this.loading = false; this.loading = false;
} }
}) })
.catch(err => .catch(err =>
{ {
// TODO: Show error properly // Show error message & allow user to retry
alert(err); this.error = err;
// Allow the user to retry
this.loading = false; this.loading = false;
}); });
} }