fix(logger): strip lua scheduler errors

This commit is contained in:
Linden committed 2024-02-09 13:14:19 +11:00
1 parent a020693a9f
commit 43e0df4a5b
1 file changed
+1 -1
+1 -1
View File
@@ -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,