From 8c8f5497cae73f8a1afc4ddcff987486b9df403a Mon Sep 17 00:00:00 2001 From: LianaHus Date: Tue, 19 Nov 2019 11:58:22 +0100 Subject: [PATCH] show error among badge --- src/app/tabs/compile-tab.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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`