node-postgres
node-postgres copied to clipboard
Add error handling for non-function callback
catch callback not a function earlier to get a proper callstack. later when executing the callback the stack may be wrong/insufficient.
this may fix: https://github.com/brianc/node-postgres/issues/1184