From da7e5747f9d6c821f979f4b7abccc611c9ae71db Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Fri, 2 Mar 2018 18:01:48 -0500 Subject: [PATCH] report error message instead of array --- 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 442bb400c..684774570 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'));