1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-03 13:17:24 +02:00

Issue #1114 - Added additional debug info to media-class and prevented errors such as "Image not Found" being echoed to the browser.

This commit is contained in:
Cameron
2015-08-24 10:10:08 -07:00
parent e09688788c
commit c86e9812f3

View File

@@ -1411,9 +1411,8 @@ class e_media
} }
catch (Exception $e) catch (Exception $e)
{ {
$error = $e->getMessage(); $error = array('thumbnailer'=> $e->getMessage(), 'src'=>$src, 'dest'=>$dest, 'savePath'=>$destFilePath, 'backtrace'=>'e_media::resizeImage');;
echo $error; e107::getMessage()->addDebug(print_a($error,true));
e107::getMessage()->addDebug($error);
e107::getLog()->add("RESIZE ERROR",$error,E_LOG_INFORMATIVE,'RESIZE'); e107::getLog()->add("RESIZE ERROR",$error,E_LOG_INFORMATIVE,'RESIZE');
return false; return false;
} }