-
Notifications
You must be signed in to change notification settings - Fork 765
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Gracefully handle a missing
subprocess
module
As reported in #773, it seems that certain sandboxed environments like CloudFlare Workers don't provide a `subprocess` module, and that causes Node to throw when we try to require it. Because the only thing we need `subprocess` for is getting `uname`, here we extend the already-existing infrastructure built to gracefully handle errors to also be able to handle this new error case. Fixes #773.
- Loading branch information
Showing
2 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters