mirror of
https://github.com/neocturne/MinedMap.git
synced 2025-03-04 17:23:33 +01:00
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:
parent
b1f7f759f1
commit
86382772c3
1 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue