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})`)); } /**