Adds better stack trace to error messages #67

Merged
merged 1 commit into from Dec 13, 2012

Conversation

Projects
None yet
2 participants
Contributor

sukima commented Dec 13, 2012

Found that in Chrome when an error happens in say a handler function the
try/catch block would catch the error and pass it along to the debug()
method. The problem is that when the debug function in turn does a
console.log(err) it looses the stack trace and your not able to see what
happened.

This might be the limitations of Chrome's console but adding the
err.stack allows the developer a peek into the cause of any errors
thrown.

Adds better stack trace to error messages
Found that in Chrome when an error happens in say a handler function the
try/catch block would catch the error and pass it along to the debug()
method. The problem is that when the debug function in turn does a
console.log(err) it looses the stack trace and your not able to see what
happened.

This might be the limitations of Chrome's console but adding the
err.stack allows the developer a peek into the cause of any errors
thrown.

azicchetti added a commit that referenced this pull request Dec 13, 2012

Merge pull request #67 from sukima/better_errormessages
Adds better stack trace to error messages

@azicchetti azicchetti merged commit 0cdc684 into azicchetti:master Dec 13, 2012

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