mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-26 13:01:34 +03:00
fetch: fix "unable to open" error message
This commit is contained in:
@@ -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,
|
||||
}));
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user