Initial error refactor

This commit is contained in:
Marcin Mielniczuk
2019-09-07 19:36:29 +02:00
committed by Jakub Konka
parent 85a41d449c
commit 14aaffd46f
22 changed files with 560 additions and 383 deletions

View File

@@ -21,6 +21,7 @@
)]
mod ctx;
mod error;
mod fdentry;
mod helpers;
mod hostcalls_impl;
@@ -36,4 +37,5 @@ pub mod wasm32;
pub use ctx::{WasiCtx, WasiCtxBuilder};
pub use sys::preopen_dir;
pub(crate) type Result<T> = std::result::Result<T, self::host::__wasi_errno_t>;
pub type Error = error::Error;
pub(crate) type Result<T> = std::result::Result<T, Error>;