Skip to content

Commit

Permalink
fixup! Provide a meaningful error when CWD does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
jugglinmike committed Dec 11, 2024
1 parent 8090139 commit cde46d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/install/macos.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });

Check failure on line 42 in shared/install/macos.js

View workflow job for this annotation

GitHub Actions / test (windows-2022, 18.x, npm run test-types)

Expected 0-1 arguments, but got 2.

Check failure on line 42 in shared/install/macos.js

View workflow job for this annotation

GitHub Actions / test (windows-2022, 18.x, npm run test-types)

Expected 0-1 arguments, but got 2.
}

throw error;
Expand Down

0 comments on commit cde46d4

Please sign in to comment.