Merge pull request #1 from GuillaumeGomez/improvement

Improve messages for image creation
This commit is contained in:
Nathan Vegdahl 2017-06-14 18:58:50 -07:00 committed by GitHub
commit abc59c20ae

View File

@ -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 {