fs: report correct path when EEXIST
authorFedor Indutny <fedor.indutny@gmail.com>
Sat, 16 Nov 2013 16:46:54 +0000 (20:46 +0400)
committerFedor Indutny <fedor.indutny@gmail.com>
Tue, 10 Dec 2013 19:17:00 +0000 (23:17 +0400)
commitf16edd2632930e3fbfead4d6d52eeac87824f1a6
tree286ce474a141f3afae619922dc03384675c42d76
parent4a2792cd2f86403a71edf65d82600b6aad5713bf
fs: report correct path when EEXIST

When `symlink`, `link` or `rename` report EEXIST, ENOTEMPTY or EPERM -
the destination file name should be included in the error message,
instead of source file name.

fix #6510
src/node_file.cc
test/simple/test-fs-error-messages.js