file: fix errno propagation in sync fs calls
authorBen Noordhuis <info@bnoordhuis.nl>
Tue, 6 Sep 2011 00:03:43 +0000 (02:03 +0200)
committerBen Noordhuis <info@bnoordhuis.nl>
Tue, 6 Sep 2011 00:15:08 +0000 (02:15 +0200)
commit2d9ab49239d475cad3126384daefc6f365555dd9
tree4795c9b8357e1a6c2320e0d3f2c849dcc63a22e2
parent554dc63328deb35ccbde1aadc6d776200fbc317f
file: fix errno propagation in sync fs calls

Include libuv fs error code in the JS exception.

Fixes #1657.
src/node_file.cc
test/simple/test-fs-open.js
test/simple/test-net-connect-handle-econnrefused.js