fix
This commit is contained in:
@@ -36,7 +36,7 @@ impl_errno!(types::Errno, types::GuestErrorConversion);
|
|||||||
/// When the `errors` mapping in witx is non-empty, we need to impl the
|
/// When the `errors` mapping in witx is non-empty, we need to impl the
|
||||||
/// types::UserErrorConversion trait that wiggle generates from that mapping.
|
/// types::UserErrorConversion trait that wiggle generates from that mapping.
|
||||||
impl<'a> types::UserErrorConversion for WasiCtx<'a> {
|
impl<'a> types::UserErrorConversion for WasiCtx<'a> {
|
||||||
fn errno_from_rich_error(&self, e: RichError) -> Result<types::Errno, String> {
|
fn errno_from_rich_error(&self, e: RichError) -> Result<types::Errno, wiggle::Trap> {
|
||||||
wiggle::tracing::debug!(
|
wiggle::tracing::debug!(
|
||||||
rich_error = wiggle::tracing::field::debug(&e),
|
rich_error = wiggle::tracing::field::debug(&e),
|
||||||
"error conversion"
|
"error conversion"
|
||||||
|
|||||||
Reference in New Issue
Block a user