mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Better error handling
This commit is contained in:
@@ -43,7 +43,7 @@ $avatarCallback = function ($type, $code, $width, $height, $quality) use ($types
|
||||
$path = $types[$type][$code];
|
||||
$type = 'png';
|
||||
|
||||
if (!file_exists($path)) {
|
||||
if (!is_readable($path)) {
|
||||
throw new Exception('File not found in '.$path, 404);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user