|
|
|
@ -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'}) |
|
|
|
|