Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Commit d7327b4

Browse files
committed
Handle true-case-path permissions error
Related barsh/true-case-path#2 Fixes #2157 Closes #2161
1 parent e38a59c commit d7327b4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/extensions.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,11 @@ function getBinaryPath() {
277277
return binaryPath;
278278
}
279279

280-
return trueCasePathSync(binaryPath) || binaryPath;
280+
try {
281+
return trueCasePathSync(binaryPath) || binaryPath;
282+
} catch (e) {
283+
return binaryPath;
284+
}
281285
}
282286

283287
/**

0 commit comments

Comments
 (0)