show error among badge

pull/1/head
LianaHus 5 years ago committed by Liana Husikyan
parent ab94f545a9
commit 3fa10a31c2
  1. 6
      src/app/tabs/compile-tab.js

@ -141,7 +141,11 @@ class CompileTab extends ViewPlugin {
yo.update(this._view.contractSelection, contractSelection)
if (data['error']) {
this.renderer.error(data['error'].formattedMessage, this._view.errorContainer, {type: data['error'].severity || 'error'})
this.renderer.error(
data['error'].formattedMessage || data['error'],
this._view.errorContainer,
{type: data['error'].severity || 'error'}
)
if (data['error'].mode === 'panic') {
return modalDialogCustom.alert(yo`
<div><i class="fas fa-exclamation-circle ${css.panicError}" aria-hidden="true"></i>

Loading…
Cancel
Save