Throw errors for solidity compiler

This commit is contained in:
VoR0220 2015-10-28 14:12:50 -05:00 committed by Iuri Matias
parent a221b1b6b9
commit 8d2d4f8df4
1 changed files with 3 additions and 0 deletions

View File

@ -22,6 +22,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;
compiled_object = {}