Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add error detail #251

Merged
merged 1 commit into from
May 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion host/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ use clap::Parser;
use raiko_lib::consts::SupportedChainSpecs;
use serde::{Deserialize, Serialize};
use serde_json::Value;
use tracing::info;

type MerkleProof = HashMap<Address, EIP1186AccountProofResponse>;

Expand Down
4 changes: 2 additions & 2 deletions provers/sgx/guest/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ mod signature;
extern crate rand;
extern crate secp256k1;

use anyhow::Result;
use anyhow::{anyhow, Result};
use app_args::{App, Command};
use clap::Parser;
use one_shot::{bootstrap, load_bootstrap, one_shot};
Expand All @@ -26,7 +26,7 @@ pub async fn main() -> Result<()> {
Command::Check => {
println!("Checking if bootstrap is readable");
load_bootstrap(&args.global_opts.secrets_dir)
.map_err(|_| anyhow::Error::msg("check booststrap failed"))?;
.map_err(|err| anyhow!("check booststrap failed: {}", err))?;
}
}

Expand Down
Loading