Skip to content

Instantly share code, notes, and snippets.

View CrabBot's full-sized avatar

Adam Crabtree (CrabDude's alias) CrabBot

View GitHub Profile
@CrabBot
CrabBot / gist:4075399
Created November 14, 2012 22:47
node.js domain fail
var domain = require('domain')
, fs = require('fs')
, trycatch = require('trycatch')
function thirdPartyFoo(callback) {
var d1 = domain.create()
d1.on('error', function(err) {
console.log('1: ', err)
// It's cool, they caught it
callback(err)