aboutsummaryrefslogtreecommitdiffstats
path: root/core/command
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-07-16 17:54:04 +0200
committerJoas Schilling <nickvergessen@owncloud.com>2015-07-16 17:54:04 +0200
commit01dc3935d03cb08703b47bfeef50dcbb7f5458e7 (patch)
treeaa483963a188483f8597b868d209ccf24cca30db /core/command
parentd5dcb60e5d796852cf62183c388605793bb89c09 (diff)
downloadnextcloud-server-01dc3935d03cb08703b47bfeef50dcbb7f5458e7.tar.gz
nextcloud-server-01dc3935d03cb08703b47bfeef50dcbb7f5458e7.zip
Add app and config name to error messages
Diffstat (limited to 'core/command')
-rw-r--r--core/command/config/app/deleteconfig.php4
-rw-r--r--core/command/config/app/setconfig.php2
-rw-r--r--core/command/config/system/deleteconfig.php2
-rw-r--r--core/command/config/system/setconfig.php2
4 files changed, 5 insertions, 5 deletions
diff --git a/core/command/config/app/deleteconfig.php b/core/command/config/app/deleteconfig.php
index 0031142358e..bc031b0d589 100644
--- a/core/command/config/app/deleteconfig.php
+++ b/core/command/config/app/deleteconfig.php
@@ -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;
}
}
diff --git a/core/command/config/app/setconfig.php b/core/command/config/app/setconfig.php
index 91775094fdd..eea58a63c5e 100644
--- a/core/command/config/app/setconfig.php
+++ b/core/command/config/app/setconfig.php
@@ -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;
}
diff --git a/core/command/config/system/deleteconfig.php b/core/command/config/system/deleteconfig.php
index 49bc2bc8c03..4d193647c85 100644
--- a/core/command/config/system/deleteconfig.php
+++ b/core/command/config/system/deleteconfig.php
@@ -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;
}
diff --git a/core/command/config/system/setconfig.php b/core/command/config/system/setconfig.php
index cb2f9fe616f..82b36cca164 100644
--- a/core/command/config/system/setconfig.php
+++ b/core/command/config/system/setconfig.php
@@ -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');