Skip to content

Commit

Permalink
v1.2.2 fix error display
Browse files Browse the repository at this point in the history
  • Loading branch information
Mon-ius committed Jun 1, 2024
1 parent 1e5e786 commit 8c13521
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ato-cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ato-cli"
version = "1.2.1"
version = "1.2.2"
edition = "2021"

[dependencies]
Expand Down
13 changes: 8 additions & 5 deletions ato/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@ pub fn two_stage(_pth: &str) -> Result<(), Box<dyn std::error::Error>> {
.map(|f| f.parent().unwrap().to_path_buf())
.collect();

let _ = dataset.par_iter()
.for_each(|pth| {
let d = mesh::Data::from(pth).unwrap();
let _ = d.cp(root.clone().into());
});
let _ = dataset.par_iter().for_each(|pth| {
match mesh::Data::from(&pth) {
Ok(d) => if let Err(e) = d.cp(root.clone().into()) {
eprintln!("Error copying data from {}: {:?}", pth.display(), e);
}
Err(e) => eprintln!("Error loading data from {}: {:?}", pth.display(), e)
};
});
Ok(())
}

0 comments on commit 8c13521

Please sign in to comment.