mirror of
https://github.com/eth-act/ere.git
synced 2026-04-03 03:00:17 -04:00
23 lines
582 B
Rust
23 lines
582 B
Rust
use ere_compile_utils::CommonError;
|
|
use std::path::PathBuf;
|
|
use thiserror::Error;
|
|
|
|
#[derive(Debug, Error)]
|
|
pub enum Error {
|
|
#[error(transparent)]
|
|
CommonError(#[from] CommonError),
|
|
|
|
#[error("`risc0_build::build_package` for {guest_path} failed: {err}")]
|
|
BuildFailure {
|
|
#[source]
|
|
err: anyhow::Error,
|
|
guest_path: PathBuf,
|
|
},
|
|
|
|
#[error("`risc0_build::build_package` succeeded but failed to find guest")]
|
|
Risc0BuildMissingGuest,
|
|
|
|
#[error("ELF binary image calculation failure: {0}")]
|
|
ImageIDCalculationFailure(anyhow::Error),
|
|
}
|