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

Commit 42b42f5

Browse files
committed
Use error code instead of number
1 parent 815eabe commit 42b42f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class Api {
7070
return request(options, (error: any, res: any, value: any) => {
7171
if (error) {
7272
if (callback) {
73-
return callback({ id: null, error: error.errno }, {}, callbackParams);
73+
return callback({ id: null, error: error.code }, {}, callbackParams);
7474
}
7575
} else if (callback) {
7676
if ((res.statusCode === 200) || (res.statusCode === 201)) {

0 commit comments

Comments
 (0)