diff --git a/src/Application/UI/Component.php b/src/Application/UI/Component.php index f15ae8c0b..8562f054e 100644 --- a/src/Application/UI/Component.php +++ b/src/Application/UI/Component.php @@ -106,7 +106,7 @@ protected function tryCall(string $method, array $params): bool if (!$rc->hasMethod($method)) { return false; } elseif (!$rc->hasCallableMethod($method)) { - throw new Nette\InvalidStateException('Method ' . Nette\Utils\Reflection::toString($rc->getMethod($method)) . ' is not callable.'); + $this->error('Method ' . Nette\Utils\Reflection::toString($rc->getMethod($method)) . ' is not callable.'); } $rm = $rc->getMethod($method);