Skip to content

Commit 8c7aac8

Browse files
committed
MicroPresenter: returns 500 instead of 404 when parameter callback is missing
1 parent 7fb254b commit 8c7aac8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Application/MicroPresenter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function run(Application\Request $request): Application\IResponse
6767

6868
$params = $request->getParameters();
6969
if (!isset($params['callback'])) {
70-
throw new Application\BadRequestException('Parameter callback is missing.');
70+
throw new Nette\InvalidStateException('Parameter callback is missing.');
7171
}
7272
$callback = $params['callback'];
7373
$reflection = Nette\Utils\Callback::toReflection(Nette\Utils\Callback::check($callback));

0 commit comments

Comments
 (0)