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

Uncaught Error Solidity Unit Testing Plugin
pull/1/head
yann300 5 years ago committed by GitHub
commit 6e2007531a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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