Skip to content

Commit

Permalink
Do not log version if command errors
Browse files Browse the repository at this point in the history
  • Loading branch information
elfedy committed Aug 6, 2024
1 parent 921db38 commit 4d9addb
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions crates/common/src/compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -296,11 +296,14 @@ impl ProjectCompiler {
// for filtering artifacts in missing libraries detection
let files = self.files.clone();

{
Report::new(SpinnerReporter::spawn_with(format!(
"Using zksolc-{}",
project.zksync_zksolc.version()?
)));
let try_version = project.zksync_zksolc.version();
match try_version {
Ok(version) => {
Report::new(SpinnerReporter::spawn_with(format!("Using zksolc-{}", version)));
}
Err(_) => {
Report::new(SpinnerReporter::spawn_with(format!("Using zksolc")));
}
}
self.zksync_compile_with(&project.paths.root, || {
let files_to_compile =
Expand Down

0 comments on commit 4d9addb

Please sign in to comment.