]> granicus.if.org Git - php/commitdiff
Add "\n" after the error in usage()
authorTomas V.V.Cox <cox@php.net>
Tue, 14 May 2002 17:58:44 +0000 (17:58 +0000)
committerTomas V.V.Cox <cox@php.net>
Tue, 14 May 2002 17:58:44 +0000 (17:58 +0000)
pear/scripts/pear.in

index 7cb2d641497acdb072c07fc401c30b0e93457d10..99d6d93c67b307da76b0b2f028aed2eaf8c926da 100644 (file)
@@ -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);