Skip to content

Commit

Permalink
Merge pull request #178 from hank7444/bug/api_error_handle_promise
Browse files Browse the repository at this point in the history
api call reject() occur promise obj error every time
  • Loading branch information
erikras committed Sep 10, 2015
2 parents c958151 + 1dae4fb commit 7eef77b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/redux/clientMiddleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default function clientMiddleware(client) {
next({...rest, type: REQUEST});
return promise(client).then(
(result) => next({...rest, result, type: SUCCESS}),
(error) => { return Promise.reject(next({...rest, error, type: FAILURE})); }
(error) => next({...rest, error, type: FAILURE})
);
};
};
Expand Down

0 comments on commit 7eef77b

Please sign in to comment.