Small code fixes in API code
This commit is contained in:
@@ -18,7 +18,7 @@ class API_usersavatar extends API
|
||||
$imageProcessor->imageRestrictions = $imageRestrictions;
|
||||
$imageProcessor->validateAndProcess();
|
||||
$ImageData = $imageProcessor->returnBase64image();
|
||||
} catch (Exception $e) {
|
||||
} catch (\RuntimeException $e) {
|
||||
$this->apiOutput(401, ['error' => 'Error: ' . $e->getMessage()]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user