From 1f933928394d6b5d9482faa29c015141ba2d2a10 Mon Sep 17 00:00:00 2001 From: LianaHus Date: Tue, 19 Nov 2019 12:03:05 +0100 Subject: [PATCH] improved the badge text for error --- src/app/tabs/compile-tab.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/tabs/compile-tab.js b/src/app/tabs/compile-tab.js index f7cf68f39e3..9fe184cf1b5 100644 --- a/src/app/tabs/compile-tab.js +++ b/src/app/tabs/compile-tab.js @@ -132,7 +132,7 @@ class CompileTab extends ViewPlugin { }) } else { const count = (data.errors ? data.errors.filter(error => error.severity === 'error').length : 0 + data.error ? 1 : 0) - this.emit('statusChanged', {key: count, title: 'compilation failed', type: 'error'}) + this.emit('statusChanged', {key: count, title: `compilation failed with ${count} error${count.length > 1 ? 's' : ''}`, type: 'error'}) } // Update contract Selection let contractMap = {}