From c91652d5de86915c19d0d274f715550e6590e0b6 Mon Sep 17 00:00:00 2001 From: Pascal Hartig Date: Tue, 29 Aug 2023 09:49:56 -0700 Subject: [PATCH] Don't throw errors for Watchman not found Summary: Changelog: Don't throw an error if Watchman was not found Reviewed By: aigoncharov Differential Revision: D48778121 fbshipit-source-id: bfe3599e41d8c6fbe4ea89393ace5213914a2611 --- desktop/flipper-common/src/utils/LoggerTailer.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/desktop/flipper-common/src/utils/LoggerTailer.tsx b/desktop/flipper-common/src/utils/LoggerTailer.tsx index 98d50816b..258eeaa9b 100644 --- a/desktop/flipper-common/src/utils/LoggerTailer.tsx +++ b/desktop/flipper-common/src/utils/LoggerTailer.tsx @@ -70,6 +70,10 @@ function transformLogLevel(level: LoggerTypes, message: string) { if (message.endsWith('Network Error')) { return 'warn'; } + + if (message.includes('Watchman was not found in PATH')) { + return 'warn'; + } } return level;