mirror of
https://github.com/fluencelabs/parity-wasm
synced 2025-06-20 10:16:49 +00:00
env memory
This commit is contained in:
@ -25,6 +25,8 @@ pub enum Error {
|
||||
Value(String),
|
||||
/// Interpreter (code) error.
|
||||
Interpreter(String),
|
||||
/// Env module error.
|
||||
Env(String),
|
||||
/// Trap.
|
||||
Trap(String),
|
||||
}
|
||||
@ -43,6 +45,7 @@ impl Into<String> for Error {
|
||||
Error::Stack(s) => s,
|
||||
Error::Interpreter(s) => s,
|
||||
Error::Value(s) => s,
|
||||
Error::Env(s) => s,
|
||||
Error::Trap(s) => format!("trap: {}", s),
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user