Unverified Commit 6a603bd1 authored by yann300's avatar yann300 Committed by GitHub

Update compiler.js

parent b157f119
......@@ -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