Skip to content

Commit

Permalink
Show the class AND file in the error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
j03k64 committed Apr 13, 2014
1 parent b31433b commit d9df0eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Net/Gearman/Job.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ static public function factory($job, $conn, $handle, $initParams=array())
include_once $file;
$class = NET_GEARMAN_JOB_CLASS_PREFIX . $job;
if (!class_exists($class)) {
throw new Net_Gearman_Job_Exception('Invalid Job class: ' . (empty($class) ? '<empty>' : $file));
throw new Net_Gearman_Job_Exception('Invalid Job class: ' . (empty($class) ? '<empty>' : $class) . ' in ' . (empty($file) ? '<empty>' : $file) );
}

$instance = new $class($conn, $handle, $initParams);
Expand Down

0 comments on commit d9df0eb

Please sign in to comment.