[Pkg-privacy-commits] [msva-perl] 337/356: avoid trying to print an error message when no message is forthcoming
Ximin Luo
infinity0 at moszumanska.debian.org
Mon Aug 24 07:42:11 UTC 2015
This is an automated email from the git hooks/post-receive script.
infinity0 pushed a commit to branch debian
in repository msva-perl.
commit 20e31488243315b1eed820f9c0c9eb189c11c87e
Author: Daniel Kahn Gillmor <dkg at fifthhorseman.net>
Date: Tue Feb 7 21:54:11 2012 -0500
avoid trying to print an error message when no message is forthcoming
---
gpgkeys_hkpms | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/gpgkeys_hkpms b/gpgkeys_hkpms
index 5dbcbc7..7b82bf0 100755
--- a/gpgkeys_hkpms
+++ b/gpgkeys_hkpms
@@ -117,7 +117,9 @@ use warnings;
if (JSON::is_bool($ret->{valid}) && ($ret->{valid} eq 1)) {
$self->{logger}->log('verbose', "Monkeysphere HKPMS Certificate validation succeeded:\n %s\n", $ret->{message});
} else {
- $self->{logger}->log('error', "Monkeysphere HKPMS Certificate validation failed:\n %s\n", $ret->{message});
+ my $m = '[undefined]';
+ $m = $ret->{message} if (defined($ret->{message}));
+ $self->{logger}->log('error', "Monkeysphere HKPMS Certificate validation failed:\n %s\n", $m);
}
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/msva-perl.git
More information about the Pkg-privacy-commits
mailing list