From d62779b1e8faf71e95fb2c97f890e5f12f696823 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Thu, 16 Nov 2023 13:06:52 -0500 Subject: [PATCH] Include command that failed in Error. --- scripts/ZoneMinder/lib/ZoneMinder/Storage.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ZoneMinder/lib/ZoneMinder/Storage.pm b/scripts/ZoneMinder/lib/ZoneMinder/Storage.pm index 0d8c8c062..0111d2c0a 100644 --- a/scripts/ZoneMinder/lib/ZoneMinder/Storage.pm +++ b/scripts/ZoneMinder/lib/ZoneMinder/Storage.pm @@ -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