Skip to content

Commit

Permalink
Improve invalid name error in settings:set in CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
Usbac committed Nov 10, 2024
1 parent 9a98a84 commit 7e5c41a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/settings/Set.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
$field = $names[$input->getArgument('name')] ?? null;

if (!isset($field)) {
$io->error('Invalid setting name given, must be one of: ' . implode(', ', array_keys($names)));
$io->error("Invalid setting name given, must be one of these: \n" . implode("\n", array_keys($names)));
return Command::INVALID;
}

Expand Down

0 comments on commit 7e5c41a

Please sign in to comment.