Skip to content

Commit

Permalink
Handle true-case-path permissions error
Browse files Browse the repository at this point in the history
Related barsh/true-case-path#2

Fixes #2157

Closes #2161
  • Loading branch information
xzyfer committed Nov 20, 2017
1 parent e38a59c commit d7327b4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/extensions.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,11 @@ function getBinaryPath() {
return binaryPath;
}

return trueCasePathSync(binaryPath) || binaryPath;
try {
return trueCasePathSync(binaryPath) || binaryPath;
} catch (e) {
return binaryPath;
}
}

/**
Expand Down

0 comments on commit d7327b4

Please sign in to comment.