better error log

This commit is contained in:
Pliable Pixels 2020-03-09 15:58:57 -04:00
parent 6bc8012e04
commit 38b519c8a6
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ if ( empty($_REQUEST['path']) ) {
$path = $Event->Path().'/objdetect.gif'; $path = $Event->Path().'/objdetect.gif';
if ( !file_exists($path) ) { if ( !file_exists($path) ) {
header('HTTP/1.0 404 Not Found'); header('HTTP/1.0 404 Not Found');
ZM\Fatal("File $path does not exist. Please make sure store_frame_in_zm is enabled in the object detection config"); ZM\Fatal("File $path does not exist. You might not have enabled GIF creation in objectconfig.ini. If you have, inspect debug logs for errors during creation");
} }
$Frame = new ZM\Frame(); $Frame = new ZM\Frame();
$Frame->Id('objdetect'); $Frame->Id('objdetect');