Skip to content

Commit

Permalink
[ECP-9206-v3] Update catch exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
sushmita committed Jun 17, 2024
1 parent 6f3a43b commit aaac1a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Controller/AdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,8 @@ public function isAdyenOrder(string $orderId): JsonResponse

return new JsonResponse(['status' => false]);
} catch (Throwable $t) {
return new JsonResponse(['message' => "Something went wrong."], 500);
$this->logger->error($t->getMessage());
return new JsonResponse(['message' => 'adyen.error'], 500);
}
}
}

0 comments on commit aaac1a7

Please sign in to comment.