mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
fix check for "delete component" message
This commit is contained in:
parent
37f431f148
commit
7e526395fb
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ module.exports = DispatchManager =
|
||||||
# log everything except OpRangeNotAvailable errors, these are normal
|
# log everything except OpRangeNotAvailable errors, these are normal
|
||||||
if error?
|
if error?
|
||||||
# downgrade OpRangeNotAvailable and "Delete component" errors so they are not sent to sentry
|
# downgrade OpRangeNotAvailable and "Delete component" errors so they are not sent to sentry
|
||||||
logAsWarning = (error instanceof Errors.OpRangeNotAvailableError) || error.message?.match(/^Delete component/)
|
logAsWarning = (error instanceof Errors.OpRangeNotAvailableError) || ((typeof error is' string') && error.match(/^Delete component/))
|
||||||
if logAsWarning
|
if logAsWarning
|
||||||
logger.warn err: error, project_id: project_id, doc_id: doc_id, "error processing update"
|
logger.warn err: error, project_id: project_id, doc_id: doc_id, "error processing update"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue