Skip to content

Commit 9936ac9

Browse files
authored
chore: improve error message for DX (#156)
1 parent 8b88d5d commit 9936ac9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Platform.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ private function doRequest(Model $model, array|string|object $input, array $opti
6666
}
6767
}
6868

69-
throw new RuntimeException('No response factory found for the given model');
69+
throw new RuntimeException('No response factory registered for model "'.$model::class.'" with given input.');
7070
}
7171

7272
/**
@@ -81,6 +81,6 @@ private function convertResponse(Model $model, object|array|string $input, HttpR
8181
}
8282
}
8383

84-
throw new RuntimeException('No response converter found for the given model');
84+
throw new RuntimeException('No response converter registered for model "'.$model::class.'" with given input.');
8585
}
8686
}

0 commit comments

Comments
 (0)