mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #19851 from overleaf/em-user-content-logging
Avoid logging user content when errors occur in history GitOrigin-RevId: 0326065a15dfc30155847100bb5a077efea771b5
This commit is contained in:
parent
57b3871c1c
commit
97b62e01f8
1 changed files with 3 additions and 6 deletions
|
@ -4,7 +4,7 @@ class UnprocessableError extends OError {}
|
||||||
|
|
||||||
class ApplyError extends UnprocessableError {
|
class ApplyError extends UnprocessableError {
|
||||||
constructor(message, operation, operand) {
|
constructor(message, operation, operand) {
|
||||||
super(message, { operation, operand })
|
super(message)
|
||||||
this.operation = operation
|
this.operation = operation
|
||||||
this.operand = operand
|
this.operand = operand
|
||||||
}
|
}
|
||||||
|
@ -12,7 +12,7 @@ class ApplyError extends UnprocessableError {
|
||||||
|
|
||||||
class InvalidInsertionError extends UnprocessableError {
|
class InvalidInsertionError extends UnprocessableError {
|
||||||
constructor(str, operation) {
|
constructor(str, operation) {
|
||||||
super('inserted text contains non BMP characters', { str, operation })
|
super('inserted text contains non BMP characters')
|
||||||
this.str = str
|
this.str = str
|
||||||
this.operation = operation
|
this.operation = operation
|
||||||
}
|
}
|
||||||
|
@ -20,10 +20,7 @@ class InvalidInsertionError extends UnprocessableError {
|
||||||
|
|
||||||
class TooLongError extends UnprocessableError {
|
class TooLongError extends UnprocessableError {
|
||||||
constructor(operation, resultLength) {
|
constructor(operation, resultLength) {
|
||||||
super(`resulting string would be too long: ${resultLength}`, {
|
super('resulting string would be too long', { resultLength })
|
||||||
operation,
|
|
||||||
resultLength,
|
|
||||||
})
|
|
||||||
this.operation = operation
|
this.operation = operation
|
||||||
this.resultLength = resultLength
|
this.resultLength = resultLength
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue