We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c99f2e3 commit 9606edaCopy full SHA for 9606eda
script/service/telemetry.lua
@@ -59,12 +59,28 @@ local function pushVersion(link)
59
))
60
end
61
62
+local function occlusionPath(str)
63
+ return str:gsub('[^"\r\n]+', function (chunk)
64
+ if not chunk:find '[/\\]' then
65
+ return
66
+ end
67
+ local newStr, count = chunk:gsub('.+([/\\]script[/\\])', '***%1')
68
+ if count > 0 then
69
+ return newStr
70
+ elseif chunk:find '^%u:'
71
+ or chunk:sub(1, 1) == '/' then
72
+ return '***'
73
74
+ end)
75
+end
76
+
77
local function pushErrorLog(link)
- if not log.firstError then
78
+ local err = log.firstError
79
+ if not err then
80
return
81
- local err = log.firstError
82
log.firstError = nil
83
+ err = occlusionPath(err)
84
send(link, string.pack('zzzz'
85
, 'error'
86
, token
0 commit comments