Skip to content

Commit a4daab7

Browse files
committed
Better panic when accessing non virtual file
1 parent 612453d commit a4daab7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/render-pdf/src/typst_context/context.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ impl World for TypstContext {
7373
}
7474
}
7575

76-
fn file(&self, _id: FileId) -> typst::diag::FileResult<Bytes> {
77-
panic!("File access not implemented in this minimal example")
76+
fn file(&self, id: FileId) -> typst::diag::FileResult<Bytes> {
77+
panic!("Tried to access non-virtual file with ID: {:?}", id);
7878
}
7979

8080
fn font(&self, index: usize) -> Option<Font> {

0 commit comments

Comments
 (0)