Closed alexgorbatchev closed 10 years ago
Wow, a fix with tests and everything! Thanks @alexgorbatchev!
I have a few urgent issues on my hand for this project. I'll get back to this as soon as I can :)
I would be happy to help with this project if you add me to contributors on github and npm. I already help maintain a few other projects.
Hey Alex, the fix is great! Especially now that you don't have to delay everything for the next tick.
And it's very kind of you to offer help :) I'll add you to the project on Github and npm.
Done, please confirm.
Got it, thanks! I've got a couple of suggestions that I want to run by you:
What do you think?
I'm very sorry that I kept you waiting, Alex. I should have answered sooner, so, my apologies :)
About your suggestions:
done, check it out :) i also updated tests to mocha...
one thing that bothers me about some of the tests is that they just console.log
stuff out without checking... this isn't a valid test because there isn't a way to even break it.
Everything looks great (^_^)b
Yeah, about the tests, for now we can write tests that make sure PrettyError parses different error objects correctly, and we can also test the renderObject.
What do you think?
uncaughtException
doesn't work well with majority of test harnesses because they catch and display exceptions. This patch replacesuncaughtException
console logging with a more "correct" way that better integrates into most stacks and leaves it up to the user to decide what to do with exceptions.This is a direct port of functionality with a few additional tests.
Thoughts?