From: Mikael Nordfeldth Date: Sun, 9 Mar 2014 23:30:41 +0000 (+0100) Subject: IrcManager does not have serverError, so it must throw ServerException X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e9e4190b64e0b43ca31a09925dc5a429881fadaa;p=quix0rs-gnu-social.git IrcManager does not have serverError, so it must throw ServerException --- diff --git a/plugins/Irc/lib/ircmanager.php b/plugins/Irc/lib/ircmanager.php index 3dae68d133..021fe190e3 100644 --- a/plugins/Irc/lib/ircmanager.php +++ b/plugins/Irc/lib/ircmanager.php @@ -244,7 +244,7 @@ class IrcManager extends ImManager { if (!$result) { common_log_db_error($confirm, 'DELETE', __FILE__); // TRANS: Server error thrown on database error when deleting IRC nickname confirmation. - $this->serverError(_m('Could not delete confirmation.')); + throw new ServerException(_m('Could not delete confirmation.')); } } }