Skip to content

Commit

Permalink
refactor: add versions on error logs
Browse files Browse the repository at this point in the history
Co-authored-by: Yacin Tmimi <yacintmimi@gmail.com>
  • Loading branch information
ologbonowiwi and ytmimi authored Oct 10, 2024
1 parent 9567198 commit d649463
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,14 +238,14 @@ fn check_semver_version(range_requirement: &str, actual: &str) -> bool {
let mut version_req = match semver::VersionReq::parse(range_requirement) {
Ok(r) => r,
Err(e) => {
eprintln!("Error: failed to parse required version: {}", e);
eprintln!("Error: failed to parse required version {range_requirement:?}: {e}");
return false;
}
};
let actual_version = match semver::Version::parse(actual) {
Ok(v) => v,
Err(e) => {
eprintln!("Error: failed to parse current version: {}", e);
eprintln!("Error: failed to parse current version {actual:?}: {e}");
return false;
}
};
Expand Down

0 comments on commit d649463

Please sign in to comment.