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

Opt-in crash reports #76

Merged
merged 1 commit into from
Mar 16, 2023
Merged

Opt-in crash reports #76

merged 1 commit into from
Mar 16, 2023

Conversation

gabidobo
Copy link
Member

@gabidobo gabidobo commented Mar 16, 2023

When encountering an unexpected error, Sandworm now asks users to submit a crash report.

image

This happens only in interactive envs (process.stdin.isTTY).

ℹ️ A new Error subclass has been added: UsageError. Usage errors are "expected", related to setup/usage, and do not trigger the crash report process.

Testing it out:

  • add a throw somewhere in the code
  • try each option in the select
  • reports should be visible in our sandworm-audit project, in the production env
  • try running it in a dir without a manifest file, to verify that usage errors don't trigger the prompt

Closes #75

@gabidobo gabidobo self-assigned this Mar 16, 2023
@gabidobo gabidobo linked an issue Mar 16, 2023 that may be closed by this pull request
@andreimarinescu andreimarinescu merged commit 84c90c5 into main Mar 16, 2023
@andreimarinescu andreimarinescu deleted the 75-opt-in-crash-reports branch March 16, 2023 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Opt-in crash reports
2 participants