Skip to content

Commit 0c25601

Browse files
author
Bui Sy Nguyen
committed
Fix #14
1 parent 393c882 commit 0c25601

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fproject/rest/IndexAction.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
namespace fproject\rest;
2121

2222
use Yii;
23-
use yii\base\InvalidParamException;
2423
use yii\db\ActiveQuery;
2524
use yii\helpers\Json;
25+
use yii\web\BadRequestHttpException;
2626

2727
/**
2828
* IndexAction implements the API endpoint for viewing (listing) model(s).
@@ -79,7 +79,7 @@ protected function prepareDataProvider()
7979
}
8080
else
8181
{
82-
throw new InvalidParamException("Condition definition(s) not found: ".implode(',', $conditionKeys));
82+
throw new BadRequestHttpException("Condition definition(s) not found: ".implode(',', $conditionKeys));
8383
}
8484
}
8585
}

0 commit comments

Comments
 (0)