Skip to content

Commit 083c194

Browse files
committed
fix: improve error logging
1 parent 90bc4ca commit 083c194

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Command/AddRecurringConsoleJobToQueueCommand.php

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

122122
foreach ($configuration->getArguments() as $argument) {
123123
if (!is_string($argument)) {
124-
throw new \Exception(sprintf('Argument in command %s was expected to be a string', $configuration->getCommand()));
124+
throw new \Exception(
125+
sprintf(
126+
'Argument %s in command %s was expected to be a string, received %s',
127+
(string)$argument,
128+
$configuration->getCommand(),
129+
gettype($argument)
130+
)
131+
);
125132
}
126133

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

0 commit comments

Comments
 (0)