minedmap/tile_renderer: print tile path relative to output directory

We will use strings of the same format for mipmap tile paths.
This commit is contained in:
Matthias Schiffer 2023-07-02 19:45:40 +02:00
parent b1f7f759f1
commit 86382772c3
Signed by: neocturne
GPG key ID: 16EF3F64CB201D9C

View file

@ -64,9 +64,9 @@ impl<'a> TileRenderer<'a> {
println!(
"Rendering tile {}",
output_path
.file_name()
.unwrap_or_default()
.to_string_lossy(),
.strip_prefix(&self.config.output_dir)
.expect("tile path must be in output directory")
.display(),
);
let region = self.load_region(coords)?;
@ -85,7 +85,7 @@ impl<'a> TileRenderer<'a> {
for coords in regions {
if let Err(err) = self.render_tile(coords) {
eprintln!("Failed to render tile {:?}: {:?}", coords, err,);
eprintln!("Failed to render tile {:?}: {:?}", coords, err);
}
}