Use inner property of the CompilationError type

Merge only after https://github.com/ethereum/remix/pull/1434 is released
pull/5370/head
yann300 5 years ago
parent f957e77622
commit 90e2661c5b
  1. 2
      src/app/tabs/test-tab.js

@ -122,7 +122,7 @@ module.exports = class TestTab extends ViewPlugin {
updateFinalResult (_errors, result, filename) { updateFinalResult (_errors, result, filename) {
this.testsSummary.hidden = false this.testsSummary.hidden = false
if (_errors) { if (_errors) {
_errors.forEach((err) => this.renderer.error(err.formattedMessage || err.message, this.testsSummary, {type: err.severity})) _errors.errors.forEach((err) => this.renderer.error(err.formattedMessage || err.message, this.testsSummary, {type: err.severity}))
return return
} }
this.testsSummary.appendChild(yo`<div class=${css.summaryTitle}> ${filename} </div>`) this.testsSummary.appendChild(yo`<div class=${css.summaryTitle}> ${filename} </div>`)

Loading…
Cancel
Save