summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pear/PEAR/Command/Config.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/pear/PEAR/Command/Config.php b/pear/PEAR/Command/Config.php
index b64f0a2523..0fe768fc7c 100644
--- a/pear/PEAR/Command/Config.php
+++ b/pear/PEAR/Command/Config.php
@@ -83,8 +83,7 @@ in. The default layer is "user".
{
// $params[0] -> the layer
if ($error = $this->_checkLayer(@$params[0])) {
- $failmsg .= $error;
- break;
+ return $this->raiseError($error);
}
$keys = $this->config->getKeys();
sort($keys);
@@ -111,11 +110,10 @@ in. The default layer is "user".
// $params[0] -> the parameter
// $params[1] -> the layer
if ($error = $this->_checkLayer(@$params[1])) {
- $failmsg .= $error;
- break;
+ return $this->raiseError($error);
}
if (sizeof($params) < 1 || sizeof($params) > 2) {
- $failmsg .= "config-get expects 1 or 2 parameters";
+ return $this->raiseError("config-get expects 1 or 2 parameters");
} elseif (sizeof($params) == 1) {
$this->ui->outputData("$params[0] = " . $this->config->get($params[0]), $command);
} else {