Skip to content

Commit 52aa149

Browse files
committed
fix: updated error handling to show correct info
1 parent 1c4fbc4 commit 52aa149

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/httpRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export function _request<T>(
7777
}
7878

7979
if (dgRes.statusCode && dgRes.statusCode >= 400) {
80-
reject(`DG: ${dgResponse.err_code}: ${dgResponse.err_msg}`);
80+
reject(`DG: ${dgResponse.error}: ${dgResponse.reason}`);
8181
}
8282

8383
if (dgResponse.error) {

0 commit comments

Comments
 (0)