Skip to content

Commit

Permalink
Component::tryCall() throws BadRequestException
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed May 13, 2024
1 parent a89de40 commit ca9fbae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Application/UI/Component.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ca9fbae

Please sign in to comment.