]> granicus.if.org Git - php/commitdiff
add further debug information in case of error
authorGreg Beaver <cellog@php.net>
Sat, 5 Nov 2005 18:15:05 +0000 (18:15 +0000)
committerGreg Beaver <cellog@php.net>
Sat, 5 Nov 2005 18:15:05 +0000 (18:15 +0000)
pear/install-pear.php

index 908d6d3ad016a511e9d3662f2055d7a6a725d91b..12eaeedb2f3a0a13786558230ca60a583393ed57 100644 (file)
@@ -116,7 +116,8 @@ $pkg = &new PEAR_PackageFile($config, $debug);
 foreach ($install_files as $package => $instfile) {
     $info = &$pkg->fromAnyFile($instfile, PEAR_VALIDATE_INSTALLING);
     if (PEAR::isError($info)) {
-        $ui->outputData(sprintf("[PEAR] %s: %s", $package, $info->getMessage()));
+        $ui->outputData(sprintf("[PEAR] %s: %s", $package . " ($instfile)",
+            $info->getMessage()));
         continue;
     }
     $new_ver = $info->getVersion();