From b529aa070a83dd517fc96b31e93053f17227c641 Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Sun, 13 Oct 2019 21:21:48 -0400 Subject: [PATCH] [O] Show error on http error too --- src/components/app/app.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/app/app.ts b/src/components/app/app.ts index 9181691..dbdf11a 100644 --- a/src/components/app/app.ts +++ b/src/components/app/app.ts @@ -144,11 +144,10 @@ export default class App extends Vue else { // Show error message - this.loadingError = true; - this.loading = `Error: Course data failed to load.\n(${response.data})`; + this.showError(`Error: Course data failed to load.\n(${response.data})`); } }) - .catch(alert); + .catch(e => this.showError(`Error: Course data failed to load.\n(${e})`)); } /**