trap proc_exit and unsupported funcs

This commit is contained in:
Pat Hickey
2021-01-07 14:56:22 -08:00
parent c2a715ca54
commit 82128cbc5b
2 changed files with 62 additions and 49 deletions

View File

@@ -34,6 +34,10 @@ pub enum Error {
#[error("Unexpected IoError: {0}")]
UnexpectedIo(#[source] std::io::Error),
/// An unsupported feature of Wasi was used. This error will trap.
#[error("Unsupported feature: {0}")]
Unsupported(&'static str),
// Below this, all variants are from the `$errno` type:
/// Errno::TooBig: Argument list too long
#[error("TooBig: Argument list too long")]