mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-22 15:31:03 +01:00
cli: Include file path in WGSL parse error
This commit is contained in:
1 parent
0afa8fcb4f
commit
f98053aa3c
1 file changed
+2
-1
+2
-1
@@ -281,7 +281,8 @@ fn run() -> Result<(), Box<dyn std::error::Error>> {
|
||||
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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user