From e1a291ff2114ba1146c8735a05bfca871d06ef82 Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Tue, 10 Jun 2025 11:50:57 -0400 Subject: [PATCH] Consistent messages --- app/controllers/api/databases.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/api/databases.php b/app/controllers/api/databases.php index 85fae8ea35..098361651f 100644 --- a/app/controllers/api/databases.php +++ b/app/controllers/api/databases.php @@ -4523,9 +4523,9 @@ App::patch('/v1/databases/:databaseId/collections/:collectionId/documents/:docum } catch (NotFoundException) { throw new Exception(Exception::ATTRIBUTE_NOT_FOUND); } catch (LimitException) { - throw new Exception(Exception::ATTRIBUTE_LIMIT_EXCEEDED, 'Attribute `' . $attribute . '` has reached the maximum value of ' . $max); + throw new Exception(Exception::ATTRIBUTE_LIMIT_EXCEEDED, 'Attribute "' . $attribute . '" has reached the maximum value of ' . $max); } catch (TypeException) { - throw new Exception(Exception::ATTRIBUTE_TYPE_INVALID, 'Attribute `' . $attribute . '` is not a number'); + throw new Exception(Exception::ATTRIBUTE_TYPE_INVALID, 'Attribute "' . $attribute . '" is not a number'); } $queueForStatsUsage