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);
|
||||
if (error.name === 'Unauthorized') {
|
||||
this.handleUnauthorized();
|
||||
} else if (error.name === 'DiscoveryError') {
|
||||
// Do nothing, because the widget will handle it
|
||||
} else {
|
||||
alert('An unknown error occured. Please check the browser console for details.');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue