throw exception instead of clientError

This commit is contained in:
Mikael Nordfeldth 2016-03-09 14:17:55 +01:00
parent e2c6f2f96f
commit 723b49a22a

View File

@ -115,7 +115,7 @@ class NewnoticeAction extends FormAction
// simply no attached media to the new notice // simply no attached media to the new notice
if (empty($content)) { if (empty($content)) {
// TRANS: Client error displayed trying to send a notice without content. // TRANS: Client error displayed trying to send a notice without content.
$this->clientError(_('No content!')); throw new ClientException(_('No content!'));
} }
} }