aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/install/install.zig9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/install/install.zig b/src/install/install.zig
index 68b9c422a..3954e1410 100644
--- a/src/install/install.zig
+++ b/src/install/install.zig
@@ -1034,8 +1034,11 @@ const PackageInstall = struct {
this.file_count = FileCopier.copy(
subdir,
&walker_,
- ) catch |err| return Result{
- .fail = .{ .err = err, .step = .copying_files },
+ ) catch |err| switch (err) {
+ error.NotSameFileSystem => return err,
+ else => return Result{
+ .fail = .{ .err = err, .step = .copying_files },
+ },
};
return Result{
@@ -1098,7 +1101,7 @@ const PackageInstall = struct {
return result;
} else |err| {
switch (err) {
- error.NotSameFileSystem, error.NotSupported => {
+ error.NotSameFileSystem => {
supported_method = .copyfile;
},
error.FileNotFound => return Result{