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

refactor: standard error handling & reporting #92

Open
HipsterBrown opened this issue Dec 22, 2022 · 0 comments
Open

refactor: standard error handling & reporting #92

HipsterBrown opened this issue Dec 22, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@HipsterBrown
Copy link
Owner

In the current architecture of the CLI, the error handling is often repeated and singular to each task. Updating any error messaging or handling can result in tedious work. The stack traces printed by unhandled errors can be intimidating and unhelpful to those that encounter them.

Using something like modern-errors, there could be custom errors for raising known issues and consolidated handlers higher up in the chain. Unknown error handling could also result in more helpful output, including a prompt to automatically create an issue in the xs-dev repo with the stack trace and any other environment info to help with debugging.

@HipsterBrown HipsterBrown added the enhancement New feature or request label Dec 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant