mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-01 21:07:59 +08:00
fix(spec) Never report errors in spec mode
This commit is contained in:
parent
eca7f2cd6d
commit
ba464e9f21
1 changed files with 2 additions and 1 deletions
|
@ -59,7 +59,8 @@ module.exports = ErrorLogger = (function() {
|
|||
/////////////////////////// PUBLIC METHODS //////////////////////////
|
||||
/////////////////////////////////////////////////////////////////////
|
||||
|
||||
ErrorLogger.prototype.reportError = function(error, extra) {
|
||||
ErrorLogger.prototype.reportError = function(error, extra = {}) {
|
||||
if (this.inSpecMode) { return }
|
||||
if (!error) { error = {stack: ""} }
|
||||
this._appendLog(error.stack)
|
||||
if (extra) { this._appendLog(extra) }
|
||||
|
|
Loading…
Reference in a new issue