Skip to content

Commit 41cfc0f

Browse files
committed
Set error.response to superagent Response
1 parent 78b4eae commit 41cfc0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/request.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export default function request(method, uri, data, options) {
8888
}
8989

9090
error = new Error(err.message || String(err));
91-
error.response = err.response.body;
91+
error.response = err.response;
9292
error.responseJson = err.response.body;
9393

9494
const message = `${method.toUpperCase()} ${uri} responded with ${err.statusCode}`;

0 commit comments

Comments
 (0)