show error among badge

pull/5370/head
LianaHus 5 years ago committed by Liana Husikyan
parent d68a8b9d5d
commit 8c8f5497ca
  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