* scripts/changelog/debian.pl: Don't hide failures
inside eval().
* scripts/Dpkg/Changelog.pm (data2rfc822): Don't fail
if argument is undef.
=back
-The following options also supported by all output methods but
+The following options are also supported by all output methods but
don't take version numbers as values:
=over 4
}
return join "\n", @rfc822;
- } else {
+ } elsif (ref($data)) {
my $rfc822_str = $data->output;
return $rfc822_str;
+ } else {
+ return;
}
}
eval("print \$changes->${format}_str(\$opts)");
+if ($@) {
+ failure("%s",$@);
+}