mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-15 01:34:27 +00:00
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);
|
self.logger.warn(output.errors[i].formattedMessage);
|
||||||
}
|
}
|
||||||
if (output.errors[i].type === 'Error' || output.errors[i].severity === 'error') {
|
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'));
|
self.logger.warn(output.errors.join('\n'));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user