Skip to content

if err.name is blank (not an Error instance), use sys.inspect#105

Open
wadey wants to merge 1 commit intovisionmedia:masterfrom
wadey:fix-non-errors
Open

if err.name is blank (not an Error instance), use sys.inspect#105
wadey wants to merge 1 commit intovisionmedia:masterfrom
wadey:fix-non-errors

Conversation

@wadey
Copy link

@wadey wadey commented Jun 6, 2011

Sometimes something other than an Error object gets thrown. This patch will use sys.inspect to show what the err object is if err.name is missing (so you can see what it is instead of just seeing 'undefined').

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant