From 2a30bf267217c6f86cf6a86194c3f5e56c788c53 Mon Sep 17 00:00:00 2001 From: Steffan Date: Thu, 8 Jun 2017 10:09:53 +0200 Subject: [PATCH] stop if any response handler returns a rejected Promise --- src/http/client/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http/client/index.js b/src/http/client/index.js index e5f6d285..385a688b 100644 --- a/src/http/client/index.js +++ b/src/http/client/index.js @@ -41,7 +41,7 @@ export default function (context) { resHandlers.forEach(handler => { response = when(response, response => { return handler.call(context, response) || response; - }); + }, reject); }); when(response, resolve, reject);