visionmedia / expresso

use mocha
http://visionmedia.github.com/expresso
759 stars 89 forks source link

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

Open wadey opened 13 years ago

wadey commented 13 years ago

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').