fetch: fix "unable to open" error message

This commit is contained in:
Andrew Kelley
2026-04-20 19:59:17 -07:00
parent bc9fabcc3f
commit 4636a761cb
+1 -1
View File
@@ -1187,7 +1187,7 @@ fn initResource(f: *Fetch, uri: std.Uri, resource: *Resource, reader_buffer: []u
if (ascii.eqlIgnoreCase(uri.scheme, "file")) {
const path = try uri.path.toRawMaybeAlloc(arena);
const file = f.parent_package_root.openFile(io, path, .{}) catch |err| {
return f.fail(f.location_tok, try eb.printString("unable to open '{f}{s}': {t}", .{
return f.fail(f.location_tok, try eb.printString("unable to open {f}/{s}: {t}", .{
f.parent_package_root, path, err,
}));
};