mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
not readable exception
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user