Skip to content

Commit

Permalink
better debug output when tools are missing
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkirk committed Jul 11, 2024
1 parent 556208b commit 9296565
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions builds/planet/assemble-planet-pbf/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,11 @@ mod distribution {
Ok(child) => child,
Err(err) => {
if let std::io::ErrorKind::NotFound = err.kind() {
eprintln!("aria2c is missing. Install aria2c and try again.");
eprintln!("aria2c is missing. Install aria2c and try again: `apt install aria2c`");
} else {
eprintln!("err running aria2c: {err:?}");
}

return Err(err.into());
}
};
Expand Down Expand Up @@ -266,7 +269,7 @@ mod osmio {
Ok(child) => child,
Err(err) => {
if let std::io::ErrorKind::NotFound = err.kind() {
eprintln!("osmium is missing. Install osmium and try again.");
eprintln!("osmium is missing. Install osmium and try again: `apt install osmium-tool`");
}
return Err(err.into());
}
Expand Down

0 comments on commit 9296565

Please sign in to comment.