diff --git a/cli/src/main.rs b/cli/src/main.rs index 062ea6d7fa..76f950e487 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -281,7 +281,8 @@ fn run() -> Result<(), Box> { match result { Ok(v) => (v, Some(input)), Err(ref e) => { - e.emit_to_stderr(&input); + let path = input_path.to_string_lossy(); + e.emit_to_stderr_with_path(&input, &path); return Err(CliError("Could not parse WGSL").into()); } }