From: Mikael Nordfeldth Date: Wed, 9 Mar 2016 13:17:55 +0000 (+0100) Subject: throw exception instead of clientError X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=723b49a22aed9acc98bca4fffb870f23a04b3bd7;p=quix0rs-gnu-social.git throw exception instead of clientError --- 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!')); } }