report error message instead of array
This commit is contained in:
parent
66a3388a9d
commit
da7e5747f9
|
@ -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'));
|
||||
|
|
Loading…
Reference in New Issue