Skip to content

Commit

Permalink
add callback for async error
Browse files Browse the repository at this point in the history
  • Loading branch information
frozeman committed Apr 15, 2015
1 parent c62f817 commit 364eab7
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion dist/web3-light.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/web3-light.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/web3-light.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/web3.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/web3.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/web3.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/web3/httpprovider.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
};

Expand Down

0 comments on commit 364eab7

Please sign in to comment.