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

feat: improve error handling #92

Merged
merged 1 commit into from
Oct 4, 2024
Merged

Conversation

mateuszjenek
Copy link
Contributor

@mateuszjenek mateuszjenek commented Oct 3, 2024

This PR introduces a comprehensive error handling service designed to manage various error types across the system. The newly added service addresses the following:

  • Extension Errors: Handles errors originating from extensions, ensuring proper management and consistent reporting.
  • Generic Errors objects: Manages common errors, such as network connectivity issues (e.g., no internet connection), improving user feedback when these issues arise.
  • Custom Objects: Supports the handling of custom error objects, allowing for flexible and extensible error management.

Additionally, this PR adds a new humctl error that deals with unexpected responses from the CLI, such as the common 'Unexpected end of JSON input' error.

Example output:
Zrzut ekranu 2024-10-3 o 20 40 53

@mateuszjenek mateuszjenek force-pushed the improve_error_handling branch 13 times, most recently from b2acc6b to ba6de94 Compare October 3, 2024 20:23
@mateuszjenek mateuszjenek merged commit c21ccf0 into main Oct 4, 2024
4 checks passed
@mateuszjenek mateuszjenek deleted the improve_error_handling branch October 4, 2024 11:09
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.

2 participants