Log an error with path when can't open video

This commit is contained in:
Isaac Connor 2020-11-29 17:06:07 -05:00
parent 159edbfce9
commit 67dac2651b
1 changed files with 2 additions and 1 deletions

View File

@ -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();
}