Skip to content

Commit f2d139a

Browse files
committed
fix: better error message
1 parent 59fa0e2 commit f2d139a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

EMS/client-helper-bundle/src/Helper/Webhook/WebhookHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ private function validateWebHookCall(Request $request): void
4242
$subscriptionId = Type::string($request->headers->get(Headers::X_WEBHOOK_SUBSCRIPTION_ID));
4343
$secret = $this->cacheManager->getItem(\sprintf('webhook_secret_%s', $subscriptionId));
4444
if (!$secret->isHit()) {
45-
throw new GoneHttpException('Unknown webhook subscription');
45+
throw new GoneHttpException(\sprintf('Unknown webhook subscription %s', $subscriptionId));
4646
}
4747
$hash = \hash_hmac('sha256', Type::string($request->getContent()), Type::string($secret->get()));
4848
if ($hash !== $signature) {

0 commit comments

Comments
 (0)