diff --git a/actions/newnotice.php b/actions/newnotice.php index 6ee2092061..5aa76a94e9 100644 --- a/actions/newnotice.php +++ b/actions/newnotice.php @@ -115,7 +115,7 @@ class NewnoticeAction extends FormAction // simply no attached media to the new notice if (empty($content)) { // TRANS: Client error displayed trying to send a notice without content. - $this->clientError(_('No content!')); + throw new ClientException(_('No content!')); } }