]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
throw exception instead of clientError
authorMikael Nordfeldth <mmn@hethane.se>
Wed, 9 Mar 2016 13:17:55 +0000 (14:17 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Wed, 9 Mar 2016 13:17:55 +0000 (14:17 +0100)
actions/newnotice.php

index 6ee209206110ccbfcca611837a08e2e2f82aee1b..5aa76a94e918195962e605a8d2911782f0f8feb4 100644 (file)
@@ -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!'));
             }
         }