[O] Show error on http error too
This commit is contained in:
@@ -144,11 +144,10 @@ export default class App extends Vue
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Show error message
|
// Show error message
|
||||||
this.loadingError = true;
|
this.showError(`Error: Course data failed to load.\n(${response.data})`);
|
||||||
this.loading = `Error: Course data failed to load.\n(${response.data})`;
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(alert);
|
.catch(e => this.showError(`Error: Course data failed to load.\n(${e})`));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user