From ae11be139770a434ac9f3e937f8e397089e150fa Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Wed, 14 Jun 2017 10:46:28 +0200 Subject: [PATCH] Improve messages for imge creation --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index ac46a1e..b96868f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -329,9 +329,9 @@ fn main() { // Write to disk if !args.is_present("serialized_output") { - println!("Writing image to disk..."); + println!("Writing image to disk into '{}'...", r.output_file); if r.output_file.ends_with(".png") { - let _ = image.write_png(Path::new(&r.output_file)); + image.write_png(Path::new(&r.output_file)).expect("Failed to write png..."); } else if r.output_file.ends_with(".exr") { image.write_exr(Path::new(&r.output_file)); } else {