Skip to main content

elizaos_plugin_code/
error.rs

1use thiserror::Error;
2
3pub type Result<T> = std::result::Result<T, CodeError>;
4
5#[derive(Debug, Error)]
6pub enum CodeError {
7    #[error("io error: {0}")]
8    Io(#[from] std::io::Error),
9
10    #[error("process error: {0}")]
11    Process(String),
12}