Skip to content

error-stack: Pretty print error without the source location of the error #1215

Discussion options

You must be logged in to vote

Hi @jrmoulton and thanks for asking!

This is a very good question and currently, this is not possible. However, we are planning to add support for this by adding hook support for the location as well, so you will be able to call Report::install_debug_hook::<Location>(...). This will enable the user to either change the output of the location or don't write anything to the output at all.

I will keep you updated when this feature is implemented.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@jrmoulton
Comment options

Answer selected by jrmoulton
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/libs > error-stack Affects the `error-stack` crate (library) area/libs Relates to first-party libraries/crates/packages (area)
2 participants