From 43acd06aaa10b1bf4734bc3a1a306a79ff9d4bca Mon Sep 17 00:00:00 2001 From: ivanviduka Date: Thu, 22 Aug 2024 11:32:56 +0200 Subject: [PATCH] Switched to Throwable in catch statement because generic message was shown - error which doesn't extend Exception class was thrown --- Controller/Adminhtml/FastlyCdn/Blocking/Blocking.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Controller/Adminhtml/FastlyCdn/Blocking/Blocking.php b/Controller/Adminhtml/FastlyCdn/Blocking/Blocking.php index 0e7c87c1..a9905ae5 100644 --- a/Controller/Adminhtml/FastlyCdn/Blocking/Blocking.php +++ b/Controller/Adminhtml/FastlyCdn/Blocking/Blocking.php @@ -174,7 +174,7 @@ public function execute() return $result->setData([ 'status' => true ]); - } catch (\Exception $e) { + } catch (\Throwable $e) { return $result->setData([ 'status' => false, 'msg' => $e->getMessage()