Unverified Commit 0a255757 authored by Iuri Matias's avatar Iuri Matias Committed by GitHub

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

Update compiler.js
parents b157f119 6a603bd1
......@@ -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'))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment