diff --git a/src/Platform.php b/src/Platform.php index 0b3fe99..03e6463 100644 --- a/src/Platform.php +++ b/src/Platform.php @@ -66,7 +66,7 @@ private function doRequest(Model $model, array|string|object $input, array $opti } } - throw new RuntimeException('No response factory found for the given model'); + throw new RuntimeException('No response factory registered for model "'.$model::class.'" with given input.'); } /** @@ -81,6 +81,6 @@ private function convertResponse(Model $model, object|array|string $input, HttpR } } - throw new RuntimeException('No response converter found for the given model'); + throw new RuntimeException('No response converter registered for model "'.$model::class.'" with given input.'); } }