fix: report a failed S3 upload in Event CopyTo instead of copying to the local path and deleting the source refs #5924

This commit is contained in:
Jash committed 2026-11-14 23:22:51 +05:30
1 parent 26edfb8fa1
commit b21657eaa6
1 file changed
+4 -1
+4 -1
View File
@@ -780,7 +780,10 @@ sub CopyTo {
$moved = 1;
};
Error($@) if $@;
if (my $err = $@) {
Error($err);
return "Failed to copy event $$self{Id} to S3: $err";
}
} # end if s3
} # end if s3f3