Skip to content

Commit a4857a4

Browse files
committed
Fix unexpected literal in error of callback
1 parent 962ea8e commit a4857a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wrapper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ function setupMethods (soljson) {
207207
var url = 'https://ethereum.github.io/solc-bin/bin/soljson-' + versionString + '.js';
208208
https.get(url, function (response) {
209209
if (response.statusCode !== 200) {
210-
cb('Error retrieving binary: ' + response.statusMessage);
210+
cb(new Error('Error retrieving binary: ' + response.statusMessage));
211211
} else {
212212
response.pipe(mem);
213213
response.on('end', function () {

0 commit comments

Comments
 (0)