Skip to content

Commit dafa250

Browse files
committed
Component::tryCall() throws BadRequestException
1 parent 19ff629 commit dafa250

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Application/UI/Component.php

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

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

0 commit comments

Comments
 (0)