From 1c45d215cee80bf68c9911d6ae683bb52509ebaa Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Wed, 7 Feb 2018 19:40:59 -0500 Subject: [PATCH] check error severity besides the type --- lib/modules/solidity/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/modules/solidity/index.js b/lib/modules/solidity/index.js index 3777b181..21f18ea4 100644 --- a/lib/modules/solidity/index.js +++ b/lib/modules/solidity/index.js @@ -72,7 +72,7 @@ class Solidity { self.logger.warn(output.errors[i].formattedMessage); //return callback(new Error("Solidity errors: " + output.errors).message); } - if (output.errors[i].type === 'Error') { + if (output.errors[i].type === 'Error' || output.errors[i].severity === 'error') { return callback(new Error("Solidity errors: " + output.errors).message); } }