Skip to content

Commit

Permalink
improve reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
sayon committed Jan 21, 2025
1 parent 1a5c62a commit 2bb8a99
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ use anvil_zksync_core::observability::Observability;
use anvil_zksync_core::system_contracts::SystemContracts;

Check warning on line 19 in crates/cli/src/main.rs

View workflow job for this annotation

GitHub Actions / lint

Diff in /home/runner/work/anvil-zksync/anvil-zksync/crates/cli/src/main.rs
use anyhow::Context;
use clap::Parser;
use zksync_error::error::IError as _;
use std::fs::File;
use std::sync::Arc;
use std::time::Duration;
Expand All @@ -42,8 +43,10 @@ async fn main() -> Result<(), zksync_error::ZksyncError> {
match main_inner().await {

Check warning on line 43 in crates/cli/src/main.rs

View workflow job for this annotation

GitHub Actions / lint

Diff in /home/runner/work/anvil-zksync/anvil-zksync/crates/cli/src/main.rs
Ok(_) => Ok(()),
Err(e) => {

eprintln!("Error: {}", e.get_message());
if let Ok(Some(documentation)) = e.get_documentation() {
eprint!("{documentation:#?}")
eprintln!("{documentation:#?}")
};
Err(e)
}
Expand Down

0 comments on commit 2bb8a99

Please sign in to comment.