mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-02 14:38:50 +00:00
refactor: improve error handling
This commit is contained in:
1 parent
f3e9aa52d9
commit
924fd6a3cf
7 files changed
+56
-63
No files matched your search
+1
-1
@@ -9,7 +9,7 @@ export function printError(
|
||||
isPromise: boolean | undefined,
|
||||
...args: string[]
|
||||
) {
|
||||
const err = `${invokingResource} was unable to execute a query!\nQuery: ${args.join('\n')}`;
|
||||
const err = `${invokingResource} was unable to execute a query!\n${args.join('\n')}`;
|
||||
|
||||
if (cb && isPromise) return cb(null, err);
|
||||
|
||||
|
||||
Reference in new issue
Block a user