From: Aaron Schulz Date: Fri, 29 Jan 2016 19:56:04 +0000 (-0800) Subject: Use InvalidArgumentException in ActivityUpdateJob X-Git-Tag: 1.31.0-rc.0~8157^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=006d2d89763643095e97254d9127b9474a7a28b4;p=lhc%2Fweb%2Fwiklou.git Use InvalidArgumentException in ActivityUpdateJob Change-Id: Ib73c02868327d5e8f286bce79cdf44ebb1f47ff3 --- diff --git a/includes/jobqueue/jobs/ActivityUpdateJob.php b/includes/jobqueue/jobs/ActivityUpdateJob.php index f146e6e8bc..13e36d81f6 100644 --- a/includes/jobqueue/jobs/ActivityUpdateJob.php +++ b/includes/jobqueue/jobs/ActivityUpdateJob.php @@ -41,7 +41,8 @@ class ActivityUpdateJob extends Job { if ( $this->params['type'] === 'updateWatchlistNotification' ) { $this->updateWatchlistNotification(); } else { - throw new Exception( "Invalid 'type' parameter '{$this->params['type']}'." ); + throw new InvalidArgumentException( + "Invalid 'type' parameter '{$this->params['type']}'." ); } return true;