From 7e526395fba569cfb6c776bc1235c2a8685a6cbf Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Mon, 30 Apr 2018 09:56:01 +0100 Subject: [PATCH] fix check for "delete component" message --- services/document-updater/app/coffee/DispatchManager.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/document-updater/app/coffee/DispatchManager.coffee b/services/document-updater/app/coffee/DispatchManager.coffee index 0274901bf1..93a22bfc07 100644 --- a/services/document-updater/app/coffee/DispatchManager.coffee +++ b/services/document-updater/app/coffee/DispatchManager.coffee @@ -27,7 +27,7 @@ module.exports = DispatchManager = # log everything except OpRangeNotAvailable errors, these are normal if error? # 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 logger.warn err: error, project_id: project_id, doc_id: doc_id, "error processing update" else