Merge pull request #218 from ethereum/display-warnings

Display warnings even if there were no errors
pull/1/head
chriseth 8 years ago committed by GitHub
commit 22861f70ad
  1. 19
      src/app/renderer.js

@ -19,15 +19,16 @@ function Renderer (editor, web3, updateFiles, udapp, executionContext, formalVer
$('#output').empty(); $('#output').empty();
if (success) { if (success) {
self.contracts(data, source); self.contracts(data, source);
} else { }
if (data['error']) {
self.error(data['error']); // NOTE: still need to display as there might be warnings
} if (data['error']) {
if (data['errors']) { self.error(data['error']);
data['errors'].forEach(function (err) { }
self.error(err); if (data['errors']) {
}); data['errors'].forEach(function (err) {
} self.error(err);
});
} }
}); });
} }

Loading…
Cancel
Save