From: Marius Hoch Date: Tue, 18 Mar 2014 15:34:31 +0000 (+0100) Subject: Inprove the exception message in JobSpecification::validateParams X-Git-Tag: 1.31.0-rc.0~16587 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_aide%28?a=commitdiff_plain;h=64ca023ac3da6087b8982e517cfc72a4adb7f369;p=lhc%2Fweb%2Fwiklou.git Inprove the exception message in JobSpecification::validateParams Change-Id: Ifcaa5e89e6b5dd4d89ca26203400082bff6fd85a --- diff --git a/includes/jobqueue/JobSpecification.php b/includes/jobqueue/JobSpecification.php index e074e5c0e8..9fa7747ffc 100644 --- a/includes/jobqueue/JobSpecification.php +++ b/includes/jobqueue/JobSpecification.php @@ -119,7 +119,7 @@ class JobSpecification implements IJobSpecification { if ( is_array( $v ) ) { $this->validateParams( $v ); } elseif ( !is_scalar( $v ) && $v !== null ) { - throw new UnexpectedValueException( 'Job parameters are not JSON serializable.' ); + throw new UnexpectedValueException( "Job parameter $p is not JSON serializable." ); } } }