Skip to content

Commit

Permalink
Fix canonicalize
Browse files Browse the repository at this point in the history
  • Loading branch information
PaDarochek committed Mar 6, 2024
1 parent 27521c4 commit f1c99b8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion casr/src/bin/casr-cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,11 @@ fn print_summary(dir: &Path, unique_crash_line: bool) {
.map(|res| res.unwrap().path())
.any(|e| e.extension().is_some() && e.extension().unwrap() == "casrep")
{
clusters.push((dir.canonicalize().unwrap().to_path_buf(), 0));
if let Ok(canon_dir) = dir.canonicalize() {
clusters.push((canon_dir.to_path_buf(), 0));
} else {
clusters.push((dir.to_path_buf(), 0));

Check warning on line 830 in casr/src/bin/casr-cli.rs

View check run for this annotation

Codecov / codecov/patch

casr/src/bin/casr-cli.rs#L830

Added line #L830 was not covered by tests
}
}

for (clpath, _) in clusters {
Expand Down

0 comments on commit f1c99b8

Please sign in to comment.