You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having trouble getting caller location tracking to work with a custom ReportHandler in miette.
I want to output the caller's location whenever an error occurs, similar to what's shown in the test_location.rs tests. However, my track_caller() implementation doesn't seem to be getting called at all.
Here's a minimal example that demonstrates the issue:
What's happening:
I've created a simple LocationHandler that should track the caller's location
The test tries to read a non-existent file to trigger an error
Instead of getting the caller's location, it panics when trying to unwrap self.actual because track_caller() was never called.
Expected behaviour:
The track_caller() method should be called when the error occurs
Current behaviour: track_caller() is never called
I'm using miette version 7.5.0. What might I be doing wrong here?
Would be great if someone could point out if I'm missing something obvious or if this is potentially a bug.
Cheers
The text was updated successfully, but these errors were encountered:
Hey!
I'm having trouble getting caller location tracking to work with a custom
ReportHandler
in miette.I want to output the caller's location whenever an error occurs, similar to what's shown in the test_location.rs tests. However, my
track_caller()
implementation doesn't seem to be getting called at all.Here's a minimal example that demonstrates the issue:
What's happening:
I've created a simple
LocationHandler
that should track the caller's locationThe test tries to read a non-existent file to trigger an error
Instead of getting the caller's location, it panics when trying to unwrap
self.actual
becausetrack_caller()
was never called.Expected behaviour:
The
track_caller()
method should be called when the error occursCurrent behaviour:
track_caller()
is never calledI'm using miette version 7.5.0. What might I be doing wrong here?
Would be great if someone could point out if I'm missing something obvious or if this is potentially a bug.
Cheers
The text was updated successfully, but these errors were encountered: