Skip to content

Instantly share code, notes, and snippets.

@mnutt
Created February 6, 2010 05:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mnutt/296575 to your computer and use it in GitHub Desktop.
Save mnutt/296575 to your computer and use it in GitHub Desktop.
process.mixin(GLOBAL, require("sys"));
var posix = require("posix");
posix.stat("/etc/hsdfsd").addCallback(function(stat) {
puts(stat);
}).addErrback(function(err) {
puts(err);
}).wait();
// Error: No such file or directory
// Error: No such file or directory
// at [object Object].wait (node.js:319:13)
// at Object.<anonymous> (/Users/mnutt/code/node_svc/file_test.js:8:4)
// at [object Object].<anonymous> (node.js:928:23)
// at [object Object].emitSuccess (node.js:240:15)
// at [object Object].<anonymous> (node.js:653:21)
// at [object Object].emitSuccess (node.js:240:15)
// at node.js:510:29
// at node.js:985:9
// at node.js:989:1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment