Commit 1f933928 authored by LianaHus's avatar LianaHus Committed by Liana Husikyan

improved the badge text for error

parent 3fa10a31
...@@ -132,7 +132,7 @@ class CompileTab extends ViewPlugin { ...@@ -132,7 +132,7 @@ class CompileTab extends ViewPlugin {
}) })
} else { } else {
const count = (data.errors ? data.errors.filter(error => error.severity === 'error').length : 0 + data.error ? 1 : 0) 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 // Update contract Selection
let contractMap = {} let contractMap = {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment