fix(external-api/middleware): invalid toString call
The intention was to override 'this' argument of 'Error.toString'.
This commit is contained in:
parent
2d9ce2486e
commit
dc24782a2c
|
@ -83,7 +83,7 @@ function _toErrorString(
|
|||
error
|
||||
? typeof error === 'string'
|
||||
? error
|
||||
: Error.prototype.toString(error)
|
||||
: Error.prototype.toString.apply(error)
|
||||
: '');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue