From 17eb8bcc5fd4a0ac998cd40c570e1e119f9c1313 Mon Sep 17 00:00:00 2001 From: antoniotrkdz Date: Mon, 26 Feb 2018 15:42:56 +0100 Subject: [PATCH] Possible fix for Uncaught (in Promise) issue Relates to #43 --- src/middleware.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/middleware.js b/src/middleware.js index 071d0097..f6492187 100644 --- a/src/middleware.js +++ b/src/middleware.js @@ -39,6 +39,7 @@ export default function buildMiddleware() { meta: { ...meta, type: 'error' }, }); return Promise.reject(result); - }); + }) + .catch(error => console.log(error)); }; }