From c8854dd1fef6f1614a8d96c16cdcbf7999d72194 Mon Sep 17 00:00:00 2001 From: =?utf8?q?M=C3=A1t=C3=A9=20Szab=C3=B3?= Date: Sun, 26 May 2019 14:22:45 +0200 Subject: [PATCH] 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 --- includes/jobqueue/Job.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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!" + ); } } -- 2.20.1