mirror of https://github.com/embarklabs/embark.git
small corrections
This commit is contained in:
parent
8d2d4f8df4
commit
1bd6c89f0c
|
@ -22,8 +22,8 @@ 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))
|
||||
if (output.errors)
|
||||
throw new Error ("Solidity errors: " + output.errors)
|
||||
|
||||
var json = output.contracts;
|
||||
|
||||
|
|
Loading…
Reference in New Issue