not readable exception
This commit is contained in:
parent
8db0b3acf6
commit
51e11d504e
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue