1
0
Fork 0
mirror of synced 2024-06-03 03:14:50 +12:00

not readable exception

This commit is contained in:
eldadfux 2019-11-13 00:40:14 +02:00
parent 8db0b3acf6
commit 51e11d504e

View file

@ -44,7 +44,7 @@ $avatarCallback = function ($type, $code, $width, $height, $quality) use ($types
$type = 'png';
if (!is_readable($path)) {
throw new Exception('File not found in '.$path, 404);
throw new Exception('File not readable in '.$path, 500);
}
$cache = new Cache(new Filesystem('/storage/cache/app-0')); // Limit file number or size