mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-12 13:13:45 +01:00
[monorepo] remove PII and variables from error messages (#31508)
* [monorepo] remove PII and variables from error messages Exclusions: - scripts - tests - fuzzing - SplitTestManager (messages are sent to admin frontend) - Group setup (we may want an error per unique tuple) - sharejs (unused types; text type errors are shadowed already) - history-v1 error messages that are used by the ErrorRecorder - errors that flag issues with configuration/call signatures I've used these search terms for finding unwanted error messages: - new Error(` - new Error\(\n\s+` (regex search) - new OError(` - new OError\(\n\s+` (regex search) * [web] throw NotFoundError from ProjectLocator * [github-sync] fix OError.tag call in script Co-authored-by: Jessica Lawshe <jessica.lawshe@overleaf.com> * [templates] revert changes to test client --------- Co-authored-by: Jessica Lawshe <jessica.lawshe@overleaf.com> GitOrigin-RevId: 736857a4fc5d9bfb0f8cb03e0f004eda87e5a220
This commit is contained in:
committed by
Copybot
co-authored by
Jessica Lawshe
parent
1a1fa497fd
commit
7c70b749d4
@@ -84,7 +84,7 @@ export async function healthCheck() {
|
||||
|
||||
for (const historyId of HEALTH_CHECK_PROJECTS) {
|
||||
if (!(await projectHasLatestChunk(historyId))) {
|
||||
throw new Error(`project has no history: ${historyId}`)
|
||||
throw new OError('project has no history', { historyId })
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -212,7 +212,7 @@ async function queueChanges(
|
||||
baseVersion,
|
||||
})
|
||||
} else {
|
||||
throw new Error(`unexpected result queuing changes: ${status}`)
|
||||
throw new OError('unexpected result queuing changes', { status })
|
||||
}
|
||||
} catch (err) {
|
||||
if (err instanceof BaseVersionConflictError) {
|
||||
|
||||
Reference in New Issue
Block a user