From ad60b6c1edfc9ee30cf137fb1d56269e0af0941c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Igor=20Anic=CC=81?= Date: Fri, 29 Mar 2024 20:48:51 +0100 Subject: [PATCH] fetch: update comments --- src/Package/Fetch.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Package/Fetch.zig b/src/Package/Fetch.zig index cfb8706ec5..a7f146ad0f 100644 --- a/src/Package/Fetch.zig +++ b/src/Package/Fetch.zig @@ -461,6 +461,7 @@ fn runResource( }; defer tmp_directory.handle.close(); + // Fetch and unpack a resource into a temporary directory. var unpack_result = try unpackResource(f, resource, uri_path, tmp_directory); defer unpack_result.deinit(); @@ -487,9 +488,8 @@ fn runResource( .include_paths = if (f.manifest) |m| m.paths else .{}, }; - // If any error occurred for files that were ultimately excluded, those - // errors should be ignored, such as failure to create symlinks that - // weren't supposed to be included anyway. + // Ignore errors that were excluded by manifest, such as failure to + // create symlinks that weren't supposed to be included anyway. try unpack_result.filterErrors(filter); if (unpack_result.hasErrors()) { try unpack_result.bundleErrors(eb, try f.srcLoc(f.location_tok));