check error severity besides the type
This commit is contained in:
parent
e74b3a2693
commit
1c45d215ce
|
@ -72,7 +72,7 @@ class Solidity {
|
|||
self.logger.warn(output.errors[i].formattedMessage);
|
||||
//return callback(new Error("Solidity errors: " + output.errors).message);
|
||||
}
|
||||
if (output.errors[i].type === 'Error') {
|
||||
if (output.errors[i].type === 'Error' || output.errors[i].severity === 'error') {
|
||||
return callback(new Error("Solidity errors: " + output.errors).message);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue