From a2b6b96a37e90bd5cfb44ec412e6dd11766b6a98 Mon Sep 17 00:00:00 2001 From: Sebastian Holesz Date: Sun, 7 Jan 2024 19:51:02 +0100 Subject: [PATCH] gql response now returns error code - this was included in order to allow SF to better react to the API returning an error --- src/Model/Error/ErrorCodeSubscriber.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/Error/ErrorCodeSubscriber.php b/src/Model/Error/ErrorCodeSubscriber.php index efb19c324f..780729d53c 100644 --- a/src/Model/Error/ErrorCodeSubscriber.php +++ b/src/Model/Error/ErrorCodeSubscriber.php @@ -33,7 +33,7 @@ public function onErrorFormatting(ErrorFormattingEvent $event): void } if ($userCode === null && $code === null) { - return; + $code = 500; } $formattedError = $event->getFormattedError();