Skip to content
This repository was archived by the owner on Dec 1, 2023. It is now read-only.

Commit 2a30bf2

Browse files
author
Steffan
committed
stop if any response handler returns a rejected Promise
1 parent e3aace1 commit 2a30bf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/http/client/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export default function (context) {
4141
resHandlers.forEach(handler => {
4242
response = when(response, response => {
4343
return handler.call(context, response) || response;
44-
});
44+
}, reject);
4545
});
4646

4747
when(response, resolve, reject);

0 commit comments

Comments
 (0)