]> granicus.if.org Git - php/commitdiff
Some minor error verbosity updates
authorTomas V.V.Cox <cox@php.net>
Tue, 21 May 2002 02:31:23 +0000 (02:31 +0000)
committerTomas V.V.Cox <cox@php.net>
Tue, 21 May 2002 02:31:23 +0000 (02:31 +0000)
pear/PEAR/Common.php

index c87f54e8905e2db5c5fa96b5f0901b4949412856..22fb33aa3004124151449e73f80f65bdb4a2d016 100644 (file)
@@ -636,7 +636,7 @@ class PEAR_Common extends PEAR
     function infoFromTgzFile($file)
     {
         if (!@is_file($file)) {
-            return $this->raiseError('tgz :: could not open file');
+            return $this->raiseError("tgz :: could not open file \"$file\"");
         }
         if (substr($file, -4) == '.tar') {
             $compress = false;
@@ -646,7 +646,7 @@ class PEAR_Common extends PEAR
         $tar = new Archive_Tar($file, $compress);
         $content = $tar->listContent();
         if (!is_array($content)) {
-            return $this->raiseError('tgz :: could not get contents of package');
+            return $this->raiseError("tgz :: could not get contents of package \"$file\"");
         }
         $xml = null;
         foreach ($content as $file) {