Include command that failed in Error.

pull/3787/head
Isaac Connor 2023-11-16 13:06:52 -05:00
parent 939db57fa9
commit d62779b1e8
1 changed files with 1 additions and 1 deletions

View File

@ -176,7 +176,7 @@ sub delete_path {
($path) = ($path =~ /^(.*)$/); # De-taint
my $command = "$Config{ZM_PATH_RM} -rf $storage_path/$path 2>&1";
if (ZoneMinder::General::executeShellCommand($command)) {
Error("Error deleting event directory at $storage_path/$path");
Error("Error deleting event directory at $storage_path/$path using $command");
}
}
} # end sub delete_path