add callback for async error

This commit is contained in:
Fabian Vogelsteller 2015-04-15 11:48:05 +02:00
parent c62f817cc6
commit 364eab72b1
7 changed files with 8 additions and 8 deletions

2
dist/web3-light.js vendored
View File

@ -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

2
dist/web3.js vendored
View File

@ -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));
}
};

2
dist/web3.js.map vendored

File diff suppressed because one or more lines are too long

4
dist/web3.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -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));
}
};