From 55454efdce13ff82c6b10f7f58342bee142a771b Mon Sep 17 00:00:00 2001 From: Arnaud Oisel Date: Thu, 27 Dec 2018 14:23:16 +0100 Subject: [PATCH] Fix issue : Admin platform does not handle server side errors #129 --- src/hydra/fetchHydra.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hydra/fetchHydra.js b/src/hydra/fetchHydra.js index fb77347d..7460515d 100644 --- a/src/hydra/fetchHydra.js +++ b/src/hydra/fetchHydra.js @@ -43,7 +43,7 @@ export default (url, options = {}) => { ); }) .catch(e => { - if (e instanceof HttpError) { + if (e.hasOwnProperty('body')) { return Promise.reject(e); }