[+] Display error after course failed to load
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user