mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-01 22:21:51 +00:00
improvement: Provide information when callback fails
This commit is contained in:
1 parent
d2758de972
commit
f7dea332de
2 files changed
+17
-13
No files matched your search
+3
-3
@@ -25,10 +25,10 @@ const execute = async (query, parameters, resource) => {
|
||||
} catch (error) {
|
||||
console.log(
|
||||
`^1[ERROR] ${resource} was unable to execute a query!
|
||||
${error.message}
|
||||
${error.sql || `${query} ${JSON.stringify(parameters)}`}^0`
|
||||
${error.message}
|
||||
${error.sql || `${query} ${JSON.stringify(parameters)}`}^0`
|
||||
);
|
||||
console.trace(error);
|
||||
//console.trace(error);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user