diff --git a/lib/compiler.js b/lib/compiler.js index 0487db2c..54453fc9 100644 --- a/lib/compiler.js +++ b/lib/compiler.js @@ -21,6 +21,9 @@ Compiler.prototype.compile_solidity = function(contractFiles) { } var output = solc.compile({sources: input}, 1); + + if (output.errors.length > 0) + throw new Error ("Solidity errors: " + output.errors)) var json = output.contracts;