Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[now-cli] Gracefully exit when the cwd does not exist #3194

Merged
merged 2 commits into from
Oct 24, 2019

Conversation

TooTallNate
Copy link
Member

There have been Sentry errors where process.cwd() fails and throws an error. This patch handles that scenario gracefully by printing a more clear error message to the user and avoids sending a report to Sentry.

Fixes #3193.

There have been Sentry errors where `process.cwd()` fails and throws an
error. This patch handles that scenario gracefully by printing a more
clear error message to the user and avoids sending a report to Sentry.

Fixes #3193.
@kodiakhq kodiakhq bot merged commit 0996640 into canary Oct 24, 2019
@kodiakhq kodiakhq bot deleted the update/cwd-does-not-exist branch October 24, 2019 13:15
leo pushed a commit that referenced this pull request Oct 25, 2019
There have been Sentry errors where `process.cwd()` fails and throws an error. This patch handles that scenario gracefully by printing a more clear error message to the user and avoids sending a report to Sentry.

Fixes #3193.
kodiakhq bot pushed a commit that referenced this pull request Nov 18, 2019
Converts `reportError()` to typescript and adds an ignore list.

In particular, `uv_cwd` comes from `process.cwd()` so we don't need to track these errors in the case the user deletes their current working directory.

This is a follow up to #3194 which handled only one scenario.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[now-cli] Error: ENOENT: no such file or directory, uv_cwd
2 participants