From c25db8ea78999930a97a7cb2465bbe6c68e99d5f Mon Sep 17 00:00:00 2001 From: Stephan Robotta Date: Sat, 23 Nov 2024 13:48:42 +0100 Subject: [PATCH] MDL-83798 core_communication: include provider in exception messages --- communication/classes/processor.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/communication/classes/processor.php b/communication/classes/processor.php index 99089469649..67e4e596385 100644 --- a/communication/classes/processor.php +++ b/communication/classes/processor.php @@ -597,7 +597,7 @@ class processor { */ public function requires_form_features(): void { if (!$this->supports_form_features()) { - throw new \coding_exception('Form features are not supported by the provider'); + throw new \coding_exception('Form features are not supported by the provider ' . get_class($this->provider)); } } @@ -615,7 +615,7 @@ class processor { */ public function require_user_features(): void { if (!$this->supports_user_features()) { - throw new \coding_exception('User features are not supported by the provider'); + throw new \coding_exception('User features are not supported by the provider ' . get_class($this->provider)); } } @@ -642,7 +642,7 @@ class processor { */ public function require_room_features(): void { if (!$this->supports_room_features()) { - throw new \coding_exception('room features are not supported by the provider'); + throw new \coding_exception('room features are not supported by the provider ' . get_class($this->provider)); } } @@ -651,7 +651,7 @@ class processor { */ public function require_room_user_features(): void { if (!$this->supports_room_user_features()) { - throw new \coding_exception('room features are not supported by the provider'); + throw new \coding_exception('room user features are not supported by the provider ' . get_class($this->provider)); } } @@ -669,7 +669,7 @@ class processor { */ public function require_sync_provider_features(): void { if (!$this->supports_sync_provider_features()) { - throw new \coding_exception('sync features are not supported by the provider'); + throw new \coding_exception('sync features are not supported by the provider ' . get_class($this->provider)); } }