Skip to content

Commit 3bbc594

Browse files
authored
Merge pull request #110 from usemarkup/release/8.2.2
fix: improve error logging
2 parents 90bc4ca + 083c194 commit 3bbc594

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)