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
$('#output').empty();
if (success) {
self.contracts(data, source);
} else {
if (data['error']) {
self.error(data['error']);
}
if (data['errors']) {
data['errors'].forEach(function (err) {
self.error(err);
});
}
}
// NOTE: still need to display as there might be warnings
if (data['error']) {
self.error(data['error']);
}
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