From: Markus Fischer Date: Sat, 13 Apr 2002 05:52:54 +0000 (+0000) Subject: - Return a different error message if no package file was given at all. X-Git-Tag: php-4.3.0dev-ZendEngine2-Preview1~669 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e060e90f0cf39b3f7268eafd4bd93cf834c37766;p=php - Return a different error message if no package file was given at all. --- 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 +?>