theabraham/growly — pull request #5 by ashtuchkin (2013-02-08 12:16:04+00:00)
Title: Fix a crash when Growly.notify is called without callback.

When Growly.notify is called without callback and an error happens
(err is an Error instance and resp is undefined), then an exception
is thrown because 'resp.state' is checked before 'callback':

TypeError: Cannot read property 'state' of undefined
at Growly.notify (/usr/lib/node_modules/testacular/node_modules/growly/lib/growly.js:167:24)
at Socket.GNTP.send (/usr/lib/node_modules/testacular/node_modules/growly/lib/gntp.js:194:9)
at Socket.EventEmitter.emit (events.js:96:17)
at Socket._destroy.self.errorEmitted (net.js:329:14)
at process.startup.processNextTick.process._tickCallback (node.js:244:9)