From e060e90f0cf39b3f7268eafd4bd93cf834c37766 Mon Sep 17 00:00:00 2001 From: Markus Fischer Date: Sat, 13 Apr 2002 05:52:54 +0000 Subject: [PATCH] - Return a different error message if no package file was given at all. --- pear/PEAR/Installer.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pear/PEAR/Installer.php b/pear/PEAR/Installer.php index 95e679c689..721008f360 100644 --- a/pear/PEAR/Installer.php +++ b/pear/PEAR/Installer.php @@ -261,7 +261,11 @@ class PEAR_Installer extends PEAR_Common } $need_download = true; } else { - return $this->raiseError("could not open the package file: $pkgfile"); + if (strlen($pkgfile)) { + return $this->raiseError("Could not open the package file: $pkgfile"); + } else { + return $this->raiseError("No package file given"); + } } } @@ -471,4 +475,4 @@ class PEAR_Installer extends PEAR_Common // }}} } -?> \ No newline at end of file +?> -- 2.40.0