report error message instead of array

This commit is contained in:
Iuri Matias 2018-03-02 18:01:48 -05:00
parent 66a3388a9d
commit da7e5747f9
1 changed files with 1 additions and 1 deletions

View File

@ -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'));