mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-11-30 20:26:05 -05:00
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:
1 parent
26edfb8fa1
commit
b21657eaa6
1 file changed
+4
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user