projects
/
m6w6
/
travis-pecl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
5fa813b
)
display userinfo on error
author
Michael Wallner
<mike@php.net>
Fri, 15 Apr 2016 09:06:47 +0000
(11:06 +0200)
committer
Michael Wallner
<mike@php.net>
Fri, 15 Apr 2016 09:06:47 +0000
(11:06 +0200)
check-packagexml.php
patch
|
blob
|
history
diff --git
a/check-packagexml.php
b/check-packagexml.php
index d53a44efdea40957b9087366c1dcd12289072fc2..74b84cadeb7fdae39186b91be189ce8c005bf35b 100755
(executable)
--- a/
check-packagexml.php
+++ b/
check-packagexml.php
@@
-19,6
+19,13
@@
$pf = $factory->fromPackageFile($argv[1], PEAR_VALIDATE_NORMAL);
if (PEAR::isError($pf)) {
fprintf(STDERR, "ERROR: %s\n", $pf->getMessage());
+ if (is_array($infos = $pf->getUserInfo())) {
+ foreach ($infos as $info) {
+ fprintf(STDERR, " %s\n", $info["message"]);
+ }
+ } elseif (strlen($infos)) {
+ fprintf(STDERR, " %s\n", $infos);
+ }
exit(1);
}