diff --git a/src/Youch/index.js b/src/Youch/index.js index 146637b..078d455 100644 --- a/src/Youch/index.js +++ b/src/Youch/index.js @@ -129,7 +129,7 @@ class Youch { message: this.error.message, name: this.error.name, status: this.error.status, - frames: stack.frames.map(callback) + frames: stack.frames instanceof Array === true ? stack.frames.map(callback) : [] } }