visionmedia/mocha — pull request #1233 by panuhorsmalahti (2014-05-30 13:49:30+00:00)
Title: JSON error objects for easier debugging when invoking done() with non-Error

Currently Mocha prints an error message without JSON.stringifying err. This simple patch stringifies objects, which will greatly help with debugging third-party libraries that return an object instead an instance of Error (E.g. Cradle).