Prevent error alert for discovery errors

They're handled by the widget
This commit is contained in:
Basti 2017-12-31 18:40:08 +00:00
parent 8f7b861347
commit 14c39d292f
1 changed files with 2 additions and 0 deletions

View File

@ -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.');
}