Skip to content

Commit

Permalink
Fixed needlessly verbose error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
thommcgrath committed Aug 9, 2024
1 parent d34736d commit ea4fd0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Website/api/v4/classes/DatabaseObjectManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit ea4fd0c

Please sign in to comment.