Skip to content

Commit

Permalink
Accept more Status codes in call_foreign_function. (#243)
Browse files Browse the repository at this point in the history
Fixes #231.

Signed-off-by: Piotr Sikora <[email protected]>
  • Loading branch information
PiotrSikora authored Jul 19, 2024
1 parent 442edc3 commit 176e12d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/hostcalls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1030,6 +1030,9 @@ pub fn call_foreign_function(
}
}
Status::NotFound => Err(Status::NotFound),
Status::BadArgument => Err(Status::BadArgument),
Status::SerializationFailure => Err(Status::SerializationFailure),
Status::InternalFailure => Err(Status::InternalFailure),
status => panic!("unexpected status: {}", status as u32),
}
}
Expand Down

0 comments on commit 176e12d

Please sign in to comment.