Skip to content

Commit

Permalink
Replace a setError() by a throw exception in KunenaMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
xillibit committed Mar 6, 2024
1 parent b302f8c commit 8cbd88c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libraries/kunena/src/Forum/Message/KunenaMessage.php
Expand Up @@ -830,7 +830,7 @@ protected function updateAttachments(): bool
$exception = $attachment->tryAuthorise('delete', null, false);

if ($exception) {
$this->setError($exception->getMessage());
throw new Exception($exception->getMessage());
continue;
}

Expand Down

0 comments on commit 8cbd88c

Please sign in to comment.