fix(external-api/middleware): invalid toString call

The intention was to override 'this' argument of 'Error.toString'.
This commit is contained in:
paweldomas 2017-10-26 09:52:57 -05:00 committed by Saúl Ibarra Corretgé
parent 2d9ce2486e
commit dc24782a2c
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ function _toErrorString(
error
? typeof error === 'string'
? error
: Error.prototype.toString(error)
: Error.prototype.toString.apply(error)
: '');
}