Skip to content

Instantly share code, notes, and snippets.

@thejhh
Last active December 21, 2015 15:49
Show Gist options
  • Select an option

  • Save thejhh/6328827 to your computer and use it in GitHub Desktop.

Select an option

Save thejhh/6328827 to your computer and use it in GitHub Desktop.

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment