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

@mzruya mzruya 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
mzruya force-pushed the mz.error_improvments branch from 5827094 to 6084929 Compare April 1, 2023 18:19
@mzruya mzruya changed the title Integrate error-stack for better error and stacktrace reporting [Experiment] Integrate error-stack for better error and stacktrace reporting Apr 1, 2023
@mzruya

mzruya commented Apr 1, 2023

Copy link
Copy Markdown
Contributor Author

Closing in favor of #3

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.

1 participant