add back return all errors

This commit is contained in:
Jonathan Rainville 2018-08-28 08:25:38 -04:00 committed by Pascal Precht
parent 56d541fb8d
commit c844338c8a
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
1 changed files with 3 additions and 0 deletions

View File

@ -37,6 +37,9 @@ class Solidity {
if(err){
return callback(err);
}
if (output.errors && returnAllErrors) {
return callback(output.errors);
}
if (output.errors) {
for (let i=0; i<output.errors.length; i++) {