Skip to content

Commit

Permalink
Add some more useful information when this fails.
Browse files Browse the repository at this point in the history
Much easier than digging through PEAR_PackageFile to find the issue.
  • Loading branch information
mrubinsk committed Feb 5, 2015
1 parent 1a38922 commit f080abb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/Core/lib/Horde/Core/Db/Migration.php
Expand Up @@ -75,7 +75,7 @@ public function __construct($basedir = null, $pearconf = null)
dirname($dir) . '/package.xml', PEAR_VALIDATE_NORMAL
);
if ($package instanceof PEAR_Error) {
Horde::log($package->getMessage(), Horde_Log::ERR);
Horde::log(sprintf('%s: %s', $package->getMessage(), print_r($package->getUserInfo(), true)), Horde_Log::ERR);
continue;
}
$this->apps[] = $package->getName();
Expand Down

0 comments on commit f080abb

Please sign in to comment.