mirror of
https://github.com/brianc/node-postgres.git
synced 2025-12-08 20:16:25 +00:00
Before the change, it would crash with a very unhelpful error message: [project path]/node_modules/pg/lib/query.js:92 connection.sync(); ^ TypeError: Cannot call method 'sync' of undefined at Query.handleError ([project path]/node_modules/pg/lib/query.js:92:16) at Client.connect ([project path]/node_modules/pg/lib/client.js:178:24) at g (events.js:185:14) at EventEmitter.emit (events.js:85:17) at Socket.<anonymous> ([project path]/node_modules/pg/lib/connection.js:60:10) at Socket.EventEmitter.emit (events.js:85:17) at TCP.onread (net.js:424:51) After the change, it reports a much more helpful error running query [Error: Stream unexpectedly ended during query execution]