Skip to content

Commit

Permalink
refactor(youch): filter empty frames
Browse files Browse the repository at this point in the history
at times frames are reference to functions with no file, we should filter those frames
  • Loading branch information
thetutlage committed Jan 27, 2017
1 parent e7ff73f commit e421b2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Youch/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class Youch {
message: this.error.message,
name: this.error.name,
status: this.error.status,
frames: stack.frames instanceof Array === true ? stack.frames.map(callback) : []
frames: stack.frames instanceof Array === true ? stack.frames.map(callback).filter((frame) => frame.file) : []
}
}

Expand Down

0 comments on commit e421b2d

Please sign in to comment.