Commit 498ac727 authored by Alex Beregszaszi's avatar Alex Beregszaszi

Display warnings even if there were no errors

parent ebe8b2e3
...@@ -19,15 +19,16 @@ function Renderer (editor, web3, updateFiles, udapp, executionContext, formalVer ...@@ -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);
});
} }
}); });
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment