From 5ea5758bcfd5191f4e4ba6c7b613305c6d79054e Mon Sep 17 00:00:00 2001 From: "Tomas V.V.Cox" Date: Tue, 14 May 2002 17:58:44 +0000 Subject: [PATCH] Add "\n" after the error in usage() --- pear/scripts/pear.in | 4 ++-- 1 file 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); -- 2.40.0