fs: add long stacktrace debugging facility
authorBen Noordhuis <info@bnoordhuis.nl>
Tue, 4 Dec 2012 02:35:54 +0000 (03:35 +0100)
committerBen Noordhuis <info@bnoordhuis.nl>
Tue, 4 Dec 2012 07:12:12 +0000 (08:12 +0100)
commit1f76a2eddc3561ff2c434d491e0d2b893c374cfd
treec2658e1e22c1755908164d03f4c806b251249be4
parenta80434736bce22a9ac00376bb5786806752ef3dd
fs: add long stacktrace debugging facility

Enable long stacktraces if NODE_DEBUG=fs is set in the environment. Only
applies to the default rethrow callback; it's to help you find places where
you forgot to pass in a callback.
lib/fs.js
test/fixtures/test-fs-readfile-error.js [new file with mode: 0644]
test/simple/test-fs-readfile-error.js [new file with mode: 0644]