Here is the error without Q's long stack trace support:
1) fs fs.fchown(fd) can change tmp/test1.txt to own uid, gid:
TypeError: path must be a string
at fs.chown (fs.js:853:11)
at Promise.apply (/home/jhh/git/nor-fs/node_modules/q/q.js:1022:26)
at Promise.promise.promiseDispatch (/home/jhh/git/nor-fs/node_modules/q/q.js:661:41)
at /home/jhh/git/nor-fs/node_modules/q/q.js:1273:25
at flush (/home/jhh/git/nor-fs/node_modules/q/q.js:106:17)
at process._tickCallback (node.js:415:13)
Here's the same error when Q's long stack trace support is enabled:
1) fs fs .fchown(fd) can change tmp/test1.txt to own uid, gid:
TypeError: path must be a string
at fs.chown (fs.js:853:11)
From previous event:
at FileSystem.(anonymous function) [as chown] (/home/jhh/git/nor-fs/lib/FileSystem.js:30:25)
at /home/jhh/git/nor-fs/tests/test-fs.js:507:15