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); } }