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

fix: Remove string cleaning in error report #303

Merged
merged 2 commits into from
Jun 21, 2024
Merged

Conversation

Techassi
Copy link
Member

For now, let's remove the cleaning of error messages, because it hides too much detail. In the future, we should improve how these error messages are rendered in the terminal.

@Techassi Techassi self-assigned this Jun 20, 2024
@Techassi Techassi marked this pull request as ready for review June 21, 2024 07:52
@sbernauer sbernauer self-requested a review June 21, 2024 09:18
sbernauer
sbernauer previously approved these changes Jun 21, 2024
Copy link
Member

@sbernauer sbernauer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much better, thanks!

It would be awesome if we could have a short module documentation why we have our custom report and are not using snafu's report.

[nix-shell:~/stackable/stackable-cockpit]$ stackablectl --helm-repo-dev http://foo.bar op i commons
  ERROR  Go wrapper function go_add_helm_repo encountered an error: Get "http://foo.bar/index.yaml": dial tcp: lookup foo.bar: no such host
    at src/helm.rs:388

An unrecoverable error occured: helm error

Caused by these errors (recent errors listed first):
 1: failed to add Helm repo (Get "http

[nix-shell:~/stackable/stackable-cockpit]$ target/debug/stackablectl --helm-repo-dev http://foo.bar op i commons
  ERROR  Go wrapper function go_add_helm_repo encountered an error: Get "http://foo.bar/index.yaml": dial tcp: lookup foo.bar: no such host
    at rust/stackable-cockpit/src/helm.rs:388

An unrecoverable error occured: helm error

Caused by these errors (recent errors listed first):
 1: failed to add Helm repo (Get "http://foo.bar/index.yaml": dial tcp: lookup foo.bar: no such host)

@Techassi
Copy link
Member Author

Techassi commented Jun 21, 2024

Oh yeah, I can add that.

Copy link
Member

@sbernauer sbernauer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Techassi Techassi added this pull request to the merge queue Jun 21, 2024
Merged via the queue into main with commit a492033 Jun 21, 2024
24 checks passed
@Techassi Techassi deleted the fix/error-report branch June 21, 2024 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants