From 7630f962f103ebec235f29e61108cff59c700bca Mon Sep 17 00:00:00 2001 From: "Tomas V.V.Cox" Date: Sat, 4 Oct 2003 16:17:31 +0000 Subject: [PATCH] Fix: #61 [NEW]: error with pear install in pear 1.3b1 by outputting a full error message plus some help --- pear/PEAR/Installer.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pear/PEAR/Installer.php b/pear/PEAR/Installer.php index 632d6a4efc..414010b10e 100644 --- a/pear/PEAR/Installer.php +++ b/pear/PEAR/Installer.php @@ -738,6 +738,11 @@ class PEAR_Installer extends PEAR_Common $possible = array($ver => $inf['state']); } } + } else { + return $this->raiseError('No release with state equal to: \'' . implode(', ', $states) . + "' found. The latest is $pkgfile-$ver ({$inf['state']}). Use " . + "'pear install $pkgfile-$ver' or set the 'preferred_state' ". + "to '{$inf['state']}' for installing this package."); } } if ($possible) { -- 2.50.1