mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
Add app and config name to error messages
This commit is contained in:
parent
d5dcb60e5d
commit
01dc3935d0
4 changed files with 5 additions and 5 deletions
|
|
@ -70,12 +70,12 @@ class DeleteConfig extends Base {
|
|||
$configName = $input->getArgument('name');
|
||||
|
||||
if ($input->hasParameterOption('--error-if-not-exists') && !in_array($configName, $this->config->getAppKeys($appName))) {
|
||||
$output->writeln('<error>Config ' . $configName . ' could not be deleted because it did not exist</error>');
|
||||
$output->writeln('<error>Config ' . $configName . ' of app ' . $appName . ' could not be deleted because it did not exist</error>');
|
||||
return 1;
|
||||
}
|
||||
|
||||
$this->config->deleteAppValue($appName, $configName);
|
||||
$output->writeln('<info>System config value ' . $configName . ' deleted</info>');
|
||||
$output->writeln('<info>Config value ' . $configName . ' of app ' . $appName . ' deleted</info>');
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ class SetConfig extends Base {
|
|||
$configName = $input->getArgument('name');
|
||||
|
||||
if (!in_array($configName, $this->config->getAppKeys($appName)) && $input->hasParameterOption('--update-only')) {
|
||||
$output->writeln('<comment>Value not updated, as it has not been set before.</comment>');
|
||||
$output->writeln('<comment>Config value ' . $configName . ' for app ' . $appName . ' not updated, as it has not been set before.</comment>');
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ class DeleteConfig extends Base {
|
|||
$configName = $input->getArgument('name');
|
||||
|
||||
if ($input->hasParameterOption('--error-if-not-exists') && !in_array($configName, $this->systemConfig->getKeys())) {
|
||||
$output->writeln('<error>Config ' . $configName . ' could not be deleted because it did not exist</error>');
|
||||
$output->writeln('<error>System config ' . $configName . ' could not be deleted because it did not exist</error>');
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ class SetConfig extends Base {
|
|||
$configName = $input->getArgument('name');
|
||||
|
||||
if (!in_array($configName, $this->systemConfig->getKeys()) && $input->hasParameterOption('--update-only')) {
|
||||
$output->writeln('<comment>Value not updated, as it has not been set before.</comment>');
|
||||
$output->writeln('<comment>Config value ' . $configName . ' not updated, as it has not been set before.</comment>');
|
||||
return 1;
|
||||
}
|
||||
$configValue = $input->getOption('value');
|
||||
|
|
|
|||
Loading…
Reference in a new issue