Skip to content

[Experiment] Integrate error-stack for better error and stacktrace reporting - #2

Closed
mzruya wants to merge 2 commits into
mainfrom
mz.error_improvments
Closed

[Experiment] Integrate error-stack for better error and stacktrace reporting#2
mzruya wants to merge 2 commits into
mainfrom
mz.error_improvments

Conversation

@mzruya

@mzruyamzruya commented Apr 1, 2023

Copy link
Copy Markdown
Contributor

error-stack is a fairly recent Rust error reporting library meant to build richer and more concise error reports. Using it adds boilerplate and forces explicit error types across all fallible methods. The result is a much more concise and clear terminal output when something goes wrong.

For example:
image

Or:
image

I'm not yet sure the boilerplate is worth it, color-eyre, an older error reporting library might be a better fit. It would allow for good enough error traces, without being forced to define error types for every layer in the stack. (Here's an alternative using color-eyre).

@mzruya
mzruyaforce-pushed the mz.error_improvments branch from 5827094 to 6084929CompareApril 1, 2023 18:19
@mzruyamzruya changed the title Integrate error-stack for better error and stacktrace reporting[Experiment] Integrate error-stack for better error and stacktrace reportingApr 1, 2023
@mzruya

Copy link
Copy Markdown
ContributorAuthor

Closing in favor of #3

Sign up for freeto 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.

1 participant

@mzruya