check error severity besides the type

This commit is contained in:
Iuri Matias 2018-02-07 19:40:59 -05:00
parent e74b3a2693
commit 1c45d215ce
1 changed files with 1 additions and 1 deletions

View File

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