diff --git a/src/Application/MicroPresenter.php b/src/Application/MicroPresenter.php index cdf9df7f9..80dd13e45 100644 --- a/src/Application/MicroPresenter.php +++ b/src/Application/MicroPresenter.php @@ -67,7 +67,7 @@ public function run(Application\Request $request): Application\IResponse $params = $request->getParameters(); if (!isset($params['callback'])) { - throw new Application\BadRequestException('Parameter callback is missing.'); + throw new Nette\InvalidStateException('Parameter callback is missing.'); } $callback = $params['callback']; $reflection = Nette\Utils\Callback::toReflection(Nette\Utils\Callback::check($callback));