migration to JS engine #1
@ -13,6 +13,8 @@ pub enum ScriptError {
|
|||||||
ContextError(#[from] ContextError),
|
ContextError(#[from] ContextError),
|
||||||
#[error("error running: {0:?}")]
|
#[error("error running: {0:?}")]
|
||||||
ExecutionError(#[from] ExecutionError),
|
ExecutionError(#[from] ExecutionError),
|
||||||
|
#[error("error from anyhow: {0:?}")]
|
||||||
|
SerdeError(#[from] quickjs_rusty::serde::Error),
|
||||||
}
|
}
|
||||||
|
|
||||||
pub type ScriptResult<T> = Result<T, ScriptError>;
|
pub type ScriptResult<T> = Result<T, ScriptError>;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user