From 3d224512b1ab183d51fdd60db06c22902d54ef8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=A4fer?= Date: Fri, 2 Aug 2019 00:19:28 +0200 Subject: [PATCH] Warn about non-functional errorHandler hook See: https://github.com/nuxt-community/apollo-module/pull/218#issuecomment-506939244 --- webapp/plugins/apollo-error-handler.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/webapp/plugins/apollo-error-handler.js b/webapp/plugins/apollo-error-handler.js index 93a9c957c..9acf7a89a 100644 --- a/webapp/plugins/apollo-error-handler.js +++ b/webapp/plugins/apollo-error-handler.js @@ -1,5 +1,10 @@ export default (error, context) => { /* eslint-disable-next-line no-console */ + + // TODO: I added this code without ever reaching it! + // See: https://github.com/nuxt-community/apollo-module/pull/218#issuecomment-506939244 + // Maybe this `errorHandler` callback is never being called? + console.log( '%cError', 'background: red; color: white; padding: 2px 4px; border-radius: 3px; font-weight: bold;',