Skip to content

Instantly share code, notes, and snippets.

@dominictarr
dominictarr / handle_the_jandal.js
Created October 20, 2010 12:06
ways to process errors in node js
//test-uncaught-errors
var sys = require('sys')
, EventEmitter = require('events').EventEmitter;
function error1 (err){
sys.puts("Handle: " + err);
}
function error2 (err){
sys.puts("JANDAL: " + err);
}
function exit (){