|
|
|
@ -380,9 +380,9 @@ module.exports = class TestTab extends ViewPlugin { |
|
|
|
|
this.setHeader(false) |
|
|
|
|
} |
|
|
|
|
if (_errors && _errors.errors) { |
|
|
|
|
_errors.errors.forEach((err) => this.renderer.error(err.formattedMessage || err.message, this.testsOutput, { type: err.severity })) |
|
|
|
|
_errors.errors.forEach((err) => this.renderer.error(err.formattedMessage || err.message, this.testsOutput, { type: err.severity, errorType: err.type})) |
|
|
|
|
} else if (_errors && Array.isArray(_errors) && (_errors[0].message || _errors[0].formattedMessage)) { |
|
|
|
|
_errors.forEach((err) => this.renderer.error(err.formattedMessage || err.message, this.testsOutput, { type: err.severity })) |
|
|
|
|
_errors.forEach((err) => this.renderer.error(err.formattedMessage || err.message, this.testsOutput, { type: err.severity, errorType: err.type })) |
|
|
|
|
} 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.testsOutput, { type: 'error' }) |
|
|
|
|