node-sqlite
node-sqlite copied to clipboard
Return proper error messages when running parallel queries
When running multiple queries in parallel, sometimes the error message gets overwritten by another query. This results in errors "not an error". This patch places the call to sqlite3_errmsg() in a mutex and adds some properties to the error object to aid debugging.