Skip to content

Instantly share code, notes, and snippets.

@bergmark
Created March 11, 2011 05:57
Show Gist options
  • Select an option

  • Save bergmark/865520 to your computer and use it in GitHub Desktop.

Select an option

Save bergmark/865520 to your computer and use it in GitHub Desktop.
process.on('uncaughtException', function (err) {
console.log('exception: ' + err);
console.log('stack: ' + err.stack);
});
require('Task/Joose/NodeJS');
use(['KiokuJS.Backend.CouchDB', 'KiokuJS.Linker'], function () {
var handle = new KiokuJS.Backend.CouchDB({
dbURL : 'http://localhost:5984/test'
});
var scope = handle.newScope();
console.log("okay so far");
scope.store({}).andThen(function () {
console.log("never executes");
});
});
@bergmark

Copy link
Copy Markdown
Author

exception: KiokuJS.Exception.Network: Network failure, undefined, require is not defined, ReferenceError: require is not defined
at [object Object]. (/Users/adam/.local/lib/node/.jsan/HTTP/Request/Provider/NodeJS.js:11:35)
at [object Object]. (/Users/adam/.local/lib/node/.jsan/Task/Joose/Core.js:777:32)
at [object Object]. (/Users/adam/.local/lib/node/.jsan/Task/JooseX/CPS/All.js:170:26)
at [object Object].run (/Users/adam/.local/lib/node/.jsan/Task/Joose/Core.js:777:32)
at [object Object]. (/Users/adam/.local/lib/node/.jsan/Task/JooseX/CPS/All.js:101:22)
at [object Object].runCoreSequential (/Users/adam/.local/lib/node/.jsan/Task/Joose/Core.js:777:32)
at [object Object]. (/Users/adam/.local/lib/node/.jsan/Task/JooseX/CPS/All.js:74:43)
at [object Object].entry (/Users/adam/.local/lib/node/.jsan/Task/Joose/Core.js:777:32)
at [object Object]. (/Users/adam/.local/lib/node/.jsan/Task/JooseX/CPS/All.js:403:24)
at [object Object].NOW (/Users/adam/.local/lib/node/.jsan/Task/Joose/Core.js:777:32)
stack: undefined

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment