Skip to content

Commit 22222a2

Browse files
committed
feat: add command name to invalid argument type error
1 parent 56eb3ea commit 22222a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Command/AddRecurringConsoleJobToQueueCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ private function addRecurringJobs(OutputInterface $output)
121121

122122
foreach ($configuration->getArguments() as $argument) {
123123
if (!is_string($argument)) {
124-
throw new \Exception('Argument was expected to be a string');
124+
throw new \Exception(sprintf('Argument in command %s was expected to be a string', $configuration->getCommand()));
125125
}
126126

127127
$this->validateNoQuotes($argument, $configuration);

0 commit comments

Comments
 (0)