From 5442c4b76773965c7e330c137b047d311bcc1ea2 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Mon, 28 Jun 2021 11:37:45 +0545 Subject: [PATCH] proper error message --- app/controllers/api/storage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/storage.php b/app/controllers/api/storage.php index f66621b768..19546bb732 100644 --- a/app/controllers/api/storage.php +++ b/app/controllers/api/storage.php @@ -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);