node-nsqueue icon indicating copy to clipboard operation
node-nsqueue copied to clipboard

Unclear error when no call back is passed to connect and unable to establish a connection

Open memosanchez opened this issue 12 years ago • 0 comments

If you don't pass a callback to the client's connect function, the client still attempts to call a function that does not exist.

/Users/memo/Code/nsqtest/node_modules/nsqueue/lib/connection.js:28
    cb(e)
    ^
TypeError: undefined is not a function
    at Socket.connectError (/Users/memo/nsqtest/node_modules/nsqueue/lib/connection.js:28:5)
    at Socket.EventEmitter.emit (events.js:95:17)
    at onwriteError (_stream_writable.js:239:10)
    at onwrite (_stream_writable.js:257:5)
    at WritableState.onwrite (_stream_writable.js:97:5)
    at fireErrorCallbacks (net.js:437:13)
    at Socket._destroy (net.js:448:5)
    at Socket._write (net.js:637:10)
    at doWrite (_stream_writable.js:226:10)
    at writeOrBuffer (_stream_writable.js:216:5)

memosanchez avatar Feb 28 '14 00:02 memosanchez