]> granicus.if.org Git - php/commitdiff
- Return a different error message if no package file was given at all.
authorMarkus Fischer <mfischer@php.net>
Sat, 13 Apr 2002 05:52:54 +0000 (05:52 +0000)
committerMarkus Fischer <mfischer@php.net>
Sat, 13 Apr 2002 05:52:54 +0000 (05:52 +0000)
pear/PEAR/Installer.php

index 95e679c6891e80ec7fbf5d7f1107391a744336e7..721008f360ff70d794b98fdf61eefd2300984602 100644 (file)
@@ -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
+?>