From 67dac2651bdfe930f78a9eca1396f32614ecc8a7 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Sun, 29 Nov 2020 17:06:07 -0500 Subject: [PATCH] Log an error with path when can't open video --- web/views/view_video.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/views/view_video.php b/web/views/view_video.php index c94f1d9b7..4717e5f96 100644 --- a/web/views/view_video.php +++ b/web/views/view_video.php @@ -55,7 +55,8 @@ if ( $errorText ) { die(); } -if ( ! ($fh = @fopen($path,'rb') ) ) { +if ( ! ($fh = @fopen($path, 'rb') ) ) { + ZM\Error('Can\'t open video at '.$path); header('HTTP/1.0 404 Not Found'); die(); }