mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-01 14:38:50 +00:00
fix(logger): strip lua scheduler errors
This commit is contained in:
1 parent
a020693a9f
commit
43e0df4a5b
1 file changed
+1
-1
+1
-1
@@ -14,7 +14,7 @@ export function logError(
|
||||
) {
|
||||
const message = `${invokingResource} was unable to execute a query!${query ? `\n${`Query: ${query}`}` : ''}${
|
||||
includeParameters ? `\n${JSON.stringify(parameters)}` : ''
|
||||
}\n${err.message}`;
|
||||
}\n${err.message || (err as string).replace(/SCRIPT ERROR: citizen:[\w\/\.]+:\d+[:\s]+/, '')}`;
|
||||
|
||||
TriggerEvent('oxmysql:error', {
|
||||
query: query,
|
||||
|
||||
Reference in new issue
Block a user