From 14c39d292fe9963777b2387cf80377b9d2669658 Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Sun, 31 Dec 2017 18:40:08 +0000 Subject: [PATCH] Prevent error alert for discovery errors They're handled by the widget --- app/routes/application.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/routes/application.js b/app/routes/application.js index 0a4eaed..4aca664 100644 --- a/app/routes/application.js +++ b/app/routes/application.js @@ -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.'); }