Skip to content

Commit ca9fbae

Browse files
committed
Component::tryCall() throws BadRequestException
1 parent a89de40 commit ca9fbae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Application/UI/Component.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ protected function tryCall(string $method, array $params): bool
105105
if (!$rc->hasMethod($method)) {
106106
return false;
107107
} elseif (!$rc->hasCallableMethod($method)) {
108-
throw new Nette\InvalidStateException('Method ' . Nette\Utils\Reflection::toString($rc->getMethod($method)) . ' is not callable.');
108+
$this->error('Method ' . Nette\Utils\Reflection::toString($rc->getMethod($method)) . ' is not callable.');
109109
}
110110

111111
$rm = $rc->getMethod($method);

0 commit comments

Comments
 (0)