From: Máté Szabó Date: Sun, 26 May 2019 12:22:45 +0000 (+0200) Subject: Job: Fix typo in exception message for invalid specification X-Git-Tag: 1.34.0-rc.0~1588 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/%27.%24imageUrl.%27?a=commitdiff_plain;h=c8854dd1fef6f1614a8d96c16cdcbf7999d72194;p=lhc%2Fweb%2Fwiklou.git Job: Fix typo in exception message for invalid specification The Job::factory method throws an InvalidArgumentException if a given job specification is invalid. The error message for this exception was worded in correctly. This patch improves the message to avoid confusion. Change-Id: I6cab739263c1d3530c0650823db022dd5a4b60bc --- diff --git a/includes/jobqueue/Job.php b/includes/jobqueue/Job.php index d2f1dbcb31..2f98d53d82 100644 --- a/includes/jobqueue/Job.php +++ b/includes/jobqueue/Job.php @@ -103,7 +103,9 @@ abstract class Job implements RunnableJob { return $job; } else { - throw new InvalidArgumentException( "Could instantiate job '$command': bad spec!" ); + throw new InvalidArgumentException( + "Could not instantiate job '$command': bad spec!" + ); } }