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:
1 parent
fdcbb86f43
commit
8db0b3acf6
1 file changed
+1
-1
@@ -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