Skip to content

Commit 90bc4ca

Browse files
authored
Merge pull request #109 from usemarkup/feat/command_name
feat: add command name to invalid argument type error
2 parents 56eb3ea + 2517a83 commit 90bc4ca

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Command/AddCommandJobToQueueCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@ protected function configure()
4949
't',
5050
InputOption::VALUE_OPTIONAL,
5151
'The timeout time for the command. Defaults to 60 seconds',
52-
60
52+
'60'
5353
)
5454
->addOption(
5555
'idle_timeout',
5656
'i',
5757
InputOption::VALUE_OPTIONAL,
5858
'The idle timeout time for the command. Defaults to 60 seconds',
59-
60
59+
'60'
6060
);
6161
}
6262

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)