snapshots::convert_spv: Print input name before processing. (#2467)

When `convert_spv` fails, this makes it easier to tell which file it
was trying to process.
This commit is contained in:
Jim Blandy 2023-09-11 09:32:56 -07:00 committed by GitHub
parent cc87b8f9eb
commit b17eaf76a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -653,6 +653,7 @@ fn convert_spv(name: &str, adjust_coordinate_space: bool, targets: Targets) {
let root = env!("CARGO_MANIFEST_DIR");
println!("Processing '{name}'");
let module = naga::front::spv::parse_u8_slice(
&fs::read(format!("{root}/{BASE_DIR_IN}/spv/{name}.spv")).expect("Couldn't find spv file"),
&naga::front::spv::Options {