Commit e8509680 authored by LianaHus's avatar LianaHus

compiler result: check error as well

parent da10ef0d
...@@ -128,7 +128,7 @@ class CompileTab extends CompilerApi { ...@@ -128,7 +128,7 @@ class CompileTab extends CompilerApi {
) )
}) })
} else { } else {
const count = data.errors.filter(error => error.severity === 'error').length.toString() const count = (data.errors ? data.errors.filter(error => error.severity === 'error').length : 0 + data.error ? 1 : 0).toString()
this.events.emit('statusChanged', {key: count, title: 'compilation failed', type: 'danger'}) this.events.emit('statusChanged', {key: count, title: 'compilation failed', type: 'danger'})
} }
// Update contract Selection // Update contract Selection
......
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