Skip to content

Commit a1d71ca

Browse files
committed
MicroPresenter: returns 500 instead of 404 when parameter callback is missing
1 parent d3003bf commit a1d71ca

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
@@ -69,7 +69,7 @@ public function run(Application\Request $request)
6969

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

0 commit comments

Comments
 (0)