From 6a603bd150570d5cd491f9da74b92e03e18f1088 Mon Sep 17 00:00:00 2001 From: yann300 Date: Thu, 2 Aug 2018 11:02:48 +0200 Subject: [PATCH] Update compiler.js --- src/compiler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler.js b/src/compiler.js index f6fc4698a9..e7de72c36f 100644 --- a/src/compiler.js +++ b/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'))