From ea4fd0cf007123f672f4f91711b5927a5be6dc2d Mon Sep 17 00:00:00 2001 From: Thom McGrath Date: Fri, 9 Aug 2024 13:39:25 +0000 Subject: [PATCH] Fixed needlessly verbose error messages --- Website/api/v4/classes/DatabaseObjectManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Website/api/v4/classes/DatabaseObjectManager.php b/Website/api/v4/classes/DatabaseObjectManager.php index f8be57c79..554b5ea13 100644 --- a/Website/api/v4/classes/DatabaseObjectManager.php +++ b/Website/api/v4/classes/DatabaseObjectManager.php @@ -302,7 +302,7 @@ protected function HandleBulkWrite(array $context, bool $replace): Response { } } catch (Exception $err) { $database->Rollback(); - return Response::NewJsonError($err, $member, 500); + return Response::NewJsonError($err->getMessage(), $member, 500); } } try {