Skip to content

Commit 176e12d

Browse files
authored
Accept more Status codes in call_foreign_function. (#243)
Fixes #231. Signed-off-by: Piotr Sikora <[email protected]>
1 parent 442edc3 commit 176e12d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/hostcalls.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1030,6 +1030,9 @@ pub fn call_foreign_function(
10301030
}
10311031
}
10321032
Status::NotFound => Err(Status::NotFound),
1033+
Status::BadArgument => Err(Status::BadArgument),
1034+
Status::SerializationFailure => Err(Status::SerializationFailure),
1035+
Status::InternalFailure => Err(Status::InternalFailure),
10331036
status => panic!("unexpected status: {}", status as u32),
10341037
}
10351038
}

0 commit comments

Comments
 (0)