summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Fischer <mfischer@php.net>2002-04-13 05:52:54 +0000
committerMarkus Fischer <mfischer@php.net>2002-04-13 05:52:54 +0000
commite060e90f0cf39b3f7268eafd4bd93cf834c37766 (patch)
tree4fd821992b218de8bd5d267377a5515754a6e6ff
parentbe2078bb737cee4838cd9678e36b96e95df32cf4 (diff)
downloadphp-git-e060e90f0cf39b3f7268eafd4bd93cf834c37766.tar.gz
- Return a different error message if no package file was given at all.
-rw-r--r--pear/PEAR/Installer.php8
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
+?>