mariano/node-db-mysql — Issue #38: Error: Uncaught, unspecified 'error' event. at [object Object].emit (events.js:50:15)
Author: brunoqc
Created: 2011-11-09 16:03:11+00:00
State: open

I have a "Error: Uncaught, unspecified 'error' event." I think it happens when I'm about to commit. Is there anything I can do to have more debug output or something to hunt this bug down?

Code

console.log("COMMIT");
conn.query().execute("COMMIT;", function(error, rows) {
if (error) {
console.log("error", error);
} else {
console.log("ok");
}
});

Log

COMMIT

events.js:50
throw new Error("Uncaught, unspecified 'error' event.");
^
Error: Uncaught, unspecified 'error' event.
at [object Object].emit (events.js:50:15)