Skip to content

Commit bf41c18

Browse files
committed
Cleanup
1 parent e827d78 commit bf41c18

File tree

1 file changed

+1
-3
lines changed
  • binding-generator/src/writer/rust_native

1 file changed

+1
-3
lines changed

binding-generator/src/writer/rust_native/mod.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,7 @@ impl GeneratorVisitor<'_> for RustNativeBindingWriter<'_> {
204204
}
205205
Err(e) if e.kind() == ErrorKind::AlreadyExists => { /* expected, we need to exclusively create file */ }
206206
Err(e) if e.kind() == ErrorKind::PermissionDenied => { /* happens sporadically on Windows */ }
207-
Err(e) => {
208-
panic!("Error while creating file for {typ} generated type: {e}")
209-
}
207+
Err(e) => panic!("Error while creating file: {} for {typ} generated type: {e}", path.display()),
210208
}
211209
}
212210

0 commit comments

Comments
 (0)