diff --git a/src/app/tabs/compile-tab.js b/src/app/tabs/compile-tab.js index 28aaab0a4c..f7cf68f39e 100644 --- a/src/app/tabs/compile-tab.js +++ b/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`