From 704e14a91a32e9366e6c83d31f82b10bbdd31bed Mon Sep 17 00:00:00 2001 From: Michel Weststrate Date: Fri, 4 Feb 2022 01:14:01 -0800 Subject: [PATCH] Fix watchman missing error spawning logs Summary: "Watchman not in PATH" shows up in our error monitoring, because the underlying implementation first logs an error, and then throw it (which we properly catch). So patch-package once again to the rescue to make sure we don't error log an error we actually handle. Reviewed By: antonk52 Differential Revision: D33982047 fbshipit-source-id: 64384b034b1991e30b2651b3ebf66cd26d519edc --- desktop/patches/fb-watchman+2.0.1.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 desktop/patches/fb-watchman+2.0.1.patch diff --git a/desktop/patches/fb-watchman+2.0.1.patch b/desktop/patches/fb-watchman+2.0.1.patch new file mode 100644 index 000000000..8388bebd8 --- /dev/null +++ b/desktop/patches/fb-watchman+2.0.1.patch @@ -0,0 +1,13 @@ +diff --git a/node_modules/fb-watchman/index.js b/node_modules/fb-watchman/index.js +index 9f46e16..b7625cf 100644 +--- a/node_modules/fb-watchman/index.js ++++ b/node_modules/fb-watchman/index.js +@@ -166,7 +166,7 @@ Client.prototype.connect = function() { + 'https://facebook.github.io/watchman/docs/install.html ' + + 'for installation instructions'; + } +- console.error('Watchman: ', error.message); ++ console.warn('Watchman: ', error.message); + self.emit('error', error); + } +