mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-11 14:24:24 +00:00
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);
|
self.logger.warn(output.errors[i].formattedMessage);
|
||||||
//return callback(new Error("Solidity errors: " + output.errors).message);
|
//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);
|
return callback(new Error("Solidity errors: " + output.errors).message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user