Update compiler.js

pull/7/head
yann300 7 years ago committed by GitHub
parent b157f119be
commit 6a603bd150
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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