1
0
Fork 0
mirror of synced 2024-07-06 07:00:56 +12:00

proper error message

This commit is contained in:
Damodar Lohani 2021-06-28 11:37:45 +05:45
parent 79bee417ae
commit 5442c4b767

View file

@ -294,7 +294,7 @@ App::post('/v1/storage/buckets/:bucketId/files')
$maximumFileSize = $bucket->getAttribute('maximumFileSize', 0);
if($maximumFileSize > (int) App::getEnv('_APP_STORAGE_LIMIT',0)) {
throw new Exception('Server error', 500);
throw new Exception('Error bucket maximum file size is larger than _APP_STORAGE_LIMIT', 500);
}
$fileSize = new FileSize($maximumFileSize);