Skip to content
Snippets Groups Projects
Commit 27fde80e authored by Morris Jobke's avatar Morris Jobke
Browse files

fix exception message

parent 3cf237df
No related branches found
No related tags found
No related merge requests found
......@@ -58,7 +58,7 @@ class JobList implements IJobList {
}
$argument = json_encode($argument);
if (strlen($argument) > 4000) {
throw new \InvalidArgumentException('Background job arguments cant exceed 2048 characters (json encoded');
throw new \InvalidArgumentException('Background job arguments can\'t exceed 4000 characters (json encoded)');
}
$query = $this->conn->prepare('INSERT INTO `*PREFIX*jobs`(`class`, `argument`, `last_run`) VALUES(?, ?, 0)');
$query->execute(array($class, $argument));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment