[+] Display error after course failed to load

This commit is contained in:
Hykilpikonna
2019-10-13 21:18:57 -04:00
parent 8aae753098
commit c3b81b5828
+3 -2
View File
@@ -143,8 +143,9 @@ export default class App extends Vue
} }
else else
{ {
// Show error message TODO: Show it properly // Show error message
alert(response.data); this.loadingError = true;
this.loading = `Error: Course data failed to load.\n(${response.data})`;
} }
}) })
.catch(alert); .catch(alert);