Merge pull request #17 from ethereum/yann300-patch-4-1

Update compiler.js
pull/3094/head
Iuri Matias 6 years ago committed by GitHub
commit 1bfa509bd0
  1. 2
      src/compiler.js

@ -68,7 +68,7 @@ function compileContractSources (sources, importFileCb, cb) {
compiler.compile(sources, filepath)
}
], function (err, result) {
let errors = (result.errors || []).filter((e) => e.type === 'Error')
let errors = (result.errors || []).filter((e) => e.type === 'Error' || e.severity === 'error')
if (errors.length > 0) {
console.dir(errors)
return cb(new Error('errors compiling'))

Loading…
Cancel
Save