add #report when handling exceptions in the api (#21023)

This commit is contained in:
Gijs Blanken
2025-04-06 18:46:33 +02:00
committed by GitHub
parent b2abf36af6
commit 5f41acfe79
8 changed files with 47 additions and 0 deletions

View File

@@ -70,6 +70,7 @@ class AnotherFakeController extends Controller
$apiResult = $this->api->call123TestSpecialTags($client);
} catch (\Exception $exception) {
// This shouldn't happen
report($exception);
return response()->json(['error' => $exception->getMessage()], 500);
}