Inprove the exception message in JobSpecification::validateParams
authorMarius Hoch <hoo@online.de>
Tue, 18 Mar 2014 15:34:31 +0000 (16:34 +0100)
committerMarius Hoch <hoo@online.de>
Tue, 18 Mar 2014 15:34:31 +0000 (16:34 +0100)
Change-Id: Ifcaa5e89e6b5dd4d89ca26203400082bff6fd85a

includes/jobqueue/JobSpecification.php

index e074e5c..9fa7747 100644 (file)
@@ -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." );
                        }
                }
        }