Skip to content

Commit

Permalink
MicroPresenter: returns 500 instead of 404 when parameter callback is…
Browse files Browse the repository at this point in the history
… missing
  • Loading branch information
dg committed Jan 26, 2017
1 parent 1b5ca4c commit 961bf3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Application/MicroPresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function run(Application\Request $request)

$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));
Expand Down

0 comments on commit 961bf3a

Please sign in to comment.