mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-04 22:21:30 +00:00
feat: Show error trace if debug is enabled
This commit is contained in:
2 files changed
+2
-1
No files matched your search
+1
-1
@@ -28,7 +28,7 @@ const execute = async (query, parameters, resource) => {
|
||||
${error.message}
|
||||
${error.sql || `${query} ${JSON.stringify(parameters)}`}^0`
|
||||
);
|
||||
//console.trace(error);
|
||||
debug && console.trace(error);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { pool } from './pool';
|
||||
import { execute } from './execute';
|
||||
|
||||
setImmediate(async () => {
|
||||
try {
|
||||
await (await pool.getConnection()).ping();
|
||||
|
||||
Reference in new issue
Block a user