[O] Show error on http error too

This commit is contained in:
Hykilpikonna
2019-10-13 21:21:48 -04:00
parent 38d7b75831
commit b529aa070a
+2 -3
View File
@@ -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})`));
}
/**