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 trying to use miette within a library that I'm writing and I would like to first: panic whenever I find the error without bubbling to the top (I need to fail fast), which from what I understand should be possible with format!("{:?}") right?. And secondly, I'm keeping track of two Locations (std::panic::Location) which have the file and the lines for when the caller called certain functions. My idea was to do some basic math to get the line start and the line end of the file in questions and I would like to pass that to miette to use as source_code ; is that possible?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm trying to use
miettewithin a library that I'm writing and I would like to first:panicwhenever I find the error without bubbling to the top (I need to fail fast), which from what I understand should be possible withformat!("{:?}")right?. And secondly, I'm keeping track of twoLocations (std::panic::Location) which have the file and the lines for when the caller called certain functions. My idea was to do some basic math to get the line start and the line end of the file in questions and I would like to pass that tomietteto use assource_code; is that possible?Thank you in advance!!
Beta Was this translation helpful? Give feedback.
All reactions