[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:
Jakob Ackermann
2026-02-17 09:05:04 +00:00
committed by Copybot
co-authored by Jessica Lawshe
parent 1a1fa497fd
commit 7c70b749d4
32 changed files with 210 additions and 163 deletions
+3
View File
@@ -589,6 +589,9 @@
"name": "@overleaf/piece-table",
"version": "1.0.0",
"license": "Proprietary",
"dependencies": {
"@overleaf/o-error": "*"
},
"devDependencies": {
"chai": "^4.3.6",
"mocha": "^11.1.0",