diff options
| author | Markus Fischer <mfischer@php.net> | 2002-04-13 05:52:54 +0000 |
|---|---|---|
| committer | Markus Fischer <mfischer@php.net> | 2002-04-13 05:52:54 +0000 |
| commit | e060e90f0cf39b3f7268eafd4bd93cf834c37766 (patch) | |
| tree | 4fd821992b218de8bd5d267377a5515754a6e6ff | |
| parent | be2078bb737cee4838cd9678e36b96e95df32cf4 (diff) | |
| download | php-git-e060e90f0cf39b3f7268eafd4bd93cf834c37766.tar.gz | |
- Return a different error message if no package file was given at all.
| -rw-r--r-- | pear/PEAR/Installer.php | 8 |
1 files 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 +?> |
