mirror of https://github.com/embarklabs/embark.git
Throw errors for solidity compiler
This commit is contained in:
parent
a221b1b6b9
commit
8d2d4f8df4
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue