Prevent error alert for discovery errors
They're handled by the widget
This commit is contained in:
parent
8f7b861347
commit
14c39d292f
@ -11,6 +11,8 @@ export default Route.extend(BodyClassMixin, {
|
|||||||
console.debug('rs.on error', error);
|
console.debug('rs.on error', error);
|
||||||
if (error.name === 'Unauthorized') {
|
if (error.name === 'Unauthorized') {
|
||||||
this.handleUnauthorized();
|
this.handleUnauthorized();
|
||||||
|
} else if (error.name === 'DiscoveryError') {
|
||||||
|
// Do nothing, because the widget will handle it
|
||||||
} else {
|
} else {
|
||||||
alert('An unknown error occured. Please check the browser console for details.');
|
alert('An unknown error occured. Please check the browser console for details.');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user