Skip to content

Commit 41cfc0f

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/utils/request.js

Lines changed: 1 addition & 1 deletion
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)