From cde46d4682b043ee15e3a95501a442ca72e49ec6 Mon Sep 17 00:00:00 2001 From: Mike Pennisi Date: Wed, 11 Dec 2024 13:47:46 -0500 Subject: [PATCH] fixup! Provide a meaningful error when CWD does not exist --- shared/install/macos.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/install/macos.js b/shared/install/macos.js index ccfd5d9..7605c26 100644 --- a/shared/install/macos.js +++ b/shared/install/macos.js @@ -39,7 +39,7 @@ const exec = async (...args) => { const cwdExists = !!(await fs.stat(cwd).catch(() => null)); if (error.code === 'ENOENT' && !cwdExists) { - throw new Error(`Cannot access directory: ${cwd}`, {cause: error}); + throw new Error(`Cannot access directory: ${cwd}`, { cause: error }); } throw error;