Skip to content

Commit

Permalink
Merge pull request #2723 from ethereum/uncaught-error-unit-tests
Browse files Browse the repository at this point in the history
Uncaught Error Solidity Unit Testing Plugin
  • Loading branch information
yann300 authored Apr 14, 2020
2 parents 4abab07 + 76200e4 commit 6e20075
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/tabs/test-tab.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'})
Expand Down

0 comments on commit 6e20075

Please sign in to comment.