diff --git a/src/Application/UI/Component.php b/src/Application/UI/Component.php index fd8aa8688..f0efe3ed9 100644 --- a/src/Application/UI/Component.php +++ b/src/Application/UI/Component.php @@ -105,7 +105,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);