We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 393a5ea commit 6758a60Copy full SHA for 6758a60
lib/PAUSE/dist.pm
@@ -480,10 +480,22 @@ sub mail_summary {
480
for my $error (@dist_errors) {
481
my $header = $error->{header};
482
my $body = $error->{body};
483
- $body = $body->($self) if ref $body;
484
485
- push @m, "## $header\n\n";
486
- push @m, $tf->format($body), qq{\n\n};
+ if ($error->{public}) {
+ $body = $body->($self) if ref $body;
+
487
+ unless ($body) {
488
+ $Logger->log([
489
+ "encountered dist error with no body: %s",
490
+ $error->{header},
491
+ ]);
492
493
+ $body = "No further information about this error is available.";
494
+ }
495
496
+ push @m, "## $header\n\n";
497
+ push @m, $tf->format($body), qq{\n\n};
498
499
500
$status_over_all = "Failed";
501
}
0 commit comments