diff --git a/lib/modules/solidity/index.js b/lib/modules/solidity/index.js index 442bb400..68477457 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); } if (output.errors[i].type === 'Error' || output.errors[i].severity === 'error') { - return callback(new Error("Solidity errors: " + output.errors).message); + return callback(new Error("Solidity errors: " + output.errors[i].formattedMessage).message); } } self.logger.warn(output.errors.join('\n'));