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
The cxx crate that we use to bridge between Rust and C++ uses the Display implementation of errors. For eyre::Report errors, this means that only the outer context is printed, e.g. "failed to receive response". For debugging, it would be useful to use the Debug output instead, which prints the underlying causes as well.
To implement this, we could do a map_err(|e| eyre::eyre!("{e:?}")) call before returning to C++.
The text was updated successfully, but these errors were encountered:
The
cxx
crate that we use to bridge between Rust and C++ uses theDisplay
implementation of errors. Foreyre::Report
errors, this means that only the outercontext
is printed, e.g. "failed to receive response". For debugging, it would be useful to use theDebug
output instead, which prints the underlying causes as well.To implement this, we could do a
map_err(|e| eyre::eyre!("{e:?}"))
call before returning to C++.The text was updated successfully, but these errors were encountered: