small corrections

This commit is contained in:
VoR0220 2015-10-28 14:20:14 -05:00 committed by Iuri Matias
parent 8d2d4f8df4
commit 1bd6c89f0c
1 changed files with 2 additions and 2 deletions

View File

@ -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;