Browse Source

Some minor error verbosity updates

experimental/new_ui_api
Tomas V.V.Cox 25 years ago
parent
commit
5700c0d421
  1. 4
      pear/PEAR/Common.php

4
pear/PEAR/Common.php

@ -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) {

Loading…
Cancel
Save