summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas V.V.Cox <cox@php.net>2002-05-14 17:58:44 +0000
committerTomas V.V.Cox <cox@php.net>2002-05-14 17:58:44 +0000
commit5ea5758bcfd5191f4e4ba6c7b613305c6d79054e (patch)
tree7e80c80a6adae45e3de9fb0d896a31aba5471706
parent1fe8df14c65c57544ff6ebf94138cdf0d5e09698 (diff)
downloadphp-git-5ea5758bcfd5191f4e4ba6c7b613305c6d79054e.tar.gz
Add "\n" after the error in usage()
-rw-r--r--pear/scripts/pear.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/pear/scripts/pear.in b/pear/scripts/pear.in
index 7cb2d64149..99d6d93c67 100644
--- a/pear/scripts/pear.in
+++ b/pear/scripts/pear.in
@@ -175,9 +175,9 @@ function usage($error = null, $helpsubject = null)
$stderr = fopen('php://stderr', 'w');
fputs($stderr, "\n");
if (PEAR::isError($error)) {
- fputs($stderr, $error->getMessage());
+ fputs($stderr, $error->getMessage() . "\n");
} elseif ($error !== null) {
- fputs($stderr, $error);
+ fputs($stderr, "$error\n");
}
if ($helpsubject != null) {
$put = cmdHelp($helpsubject);