From 723b49a22aed9acc98bca4fffb870f23a04b3bd7 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Wed, 9 Mar 2016 14:17:55 +0100 Subject: [PATCH] throw exception instead of clientError --- actions/newnotice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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!')); } } -- 2.39.5