add callback for async error
This commit is contained in:
parent
c62f817cc6
commit
364eab72b1
|
@ -2456,7 +2456,7 @@ HttpProvider.prototype.sendAsync = function (payload, callback) {
|
|||
try {
|
||||
request.send(JSON.stringify(payload));
|
||||
} catch(error) {
|
||||
throw errors.NoConnection(this.host);
|
||||
callback(errors.NoConnection(this.host));
|
||||
}
|
||||
};
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -2456,7 +2456,7 @@ HttpProvider.prototype.sendAsync = function (payload, callback) {
|
|||
try {
|
||||
request.send(JSON.stringify(payload));
|
||||
} catch(error) {
|
||||
throw errors.NoConnection(this.host);
|
||||
callback(errors.NoConnection(this.host));
|
||||
}
|
||||
};
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -65,7 +65,7 @@ HttpProvider.prototype.sendAsync = function (payload, callback) {
|
|||
try {
|
||||
request.send(JSON.stringify(payload));
|
||||
} catch(error) {
|
||||
throw errors.NoConnection(this.host);
|
||||
callback(errors.NoConnection(this.host));
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue