improved the badge text for error

pull/1/head
LianaHus 5 years ago committed by Liana Husikyan
parent 3fa10a31c2
commit 1f93392839
  1. 2
      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 = {}

Loading…
Cancel
Save