dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2bb6da2
)
Inprove the exception message in JobSpecification::validateParams
author
Marius Hoch
<hoo@online.de>
Tue, 18 Mar 2014 15:34:31 +0000
(16:34 +0100)
committer
Marius Hoch
<hoo@online.de>
Tue, 18 Mar 2014 15:34:31 +0000
(16:34 +0100)
Change-Id: Ifcaa5e89e6b5dd4d89ca26203400082bff6fd85a
includes/jobqueue/JobSpecification.php
patch
|
blob
|
history
diff --git
a/includes/jobqueue/JobSpecification.php
b/includes/jobqueue/JobSpecification.php
index
e074e5c
..
9fa7747
100644
(file)
--- 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."
);
}
}
}