Skip to content

Commit

Permalink
Fix terminal error spam
Browse files Browse the repository at this point in the history
  • Loading branch information
Tiddo committed Oct 30, 2024
1 parent 1d69bc8 commit c17523d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ public function onDispatch(MvcEvent $e)
}

$result = parent::onDispatch($e);
$result->setTerminal(true);
if ($result instanceof \Laminas\View\Model\ViewModel) {
$result->setTerminal(true);
}

if ($this->validateKey() || $this->validateOAuth()) {
if (getenv('APPLICATION_ENV') != 'development') {
Expand Down

0 comments on commit c17523d

Please sign in to comment.