Skip to content

Commit e89c44e

Browse files
committed
Improves thrown exception
1 parent c53f5f2 commit e89c44e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Service/Provider/PackagesProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ private function getLocalRecipe(array $package)
145145
*
146146
* @return array
147147
*
148-
* @throws
148+
* @throws \InvalidArgumentException
149149
*/
150150
private function parseRequestedPackages(string $packagesRequestString)
151151
{
@@ -154,7 +154,7 @@ private function parseRequestedPackages(string $packagesRequestString)
154154
$packageDetails = explode(',', $requestedPackage);
155155

156156
if (count($packageDetails) < 3) {
157-
throw new BadRequestHttpException('Invalid package string provided');
157+
throw new \InvalidArgumentException('Invalid package string provided');
158158
}
159159

160160
$packages[] = [

0 commit comments

Comments
 (0)