Merge pull request #2723 from ethereum/uncaught-error-unit-tests

Uncaught Error Solidity Unit Testing Plugin
pull/5370/head
yann300 5 years ago committed by GitHub
commit 5da7f10bd3
  1. 3
      src/app/tabs/test-tab.js

@ -124,6 +124,9 @@ module.exports = class TestTab extends ViewPlugin {
if (_errors && _errors.errors) {
_errors.errors.forEach((err) => this.renderer.error(err.formattedMessage || err.message, this.testsSummary, {type: err.severity}))
return
} else if (_errors && Array.isArray(_errors) && (_errors[0].message || _errors[0].formattedMessage)) {
_errors.forEach((err) => this.renderer.error(err.formattedMessage || err.message, this.testsSummary, {type: err.severity}))
return
} else if (_errors && !_errors.errors && !Array.isArray(_errors)) {
// To track error like this: https://github.com/ethereum/remix/pull/1438
this.renderer.error(_errors.formattedMessage || _errors.message, this.testsSummary, {type: 'error'})

Loading…
Cancel
Save