The Job::factory method throws an InvalidArgumentException if a given
job specification is invalid. The error message for this exception was
worded in correctly. This patch improves the message to avoid confusion.
Change-Id: I6cab739263c1d3530c0650823db022dd5a4b60bc
return $job;
} else {
- throw new InvalidArgumentException( "Could instantiate job '$command': bad spec!" );
+ throw new InvalidArgumentException(
+ "Could not instantiate job '$command': bad spec!"
+ );
}
}