[libnet-dbus-perl] 109/335: Clarified error message to show type character

Intrigeri intrigeri at moszumanska.debian.org
Sat Mar 21 01:07:34 UTC 2015


This is an automated email from the git hooks/post-receive script.

intrigeri pushed a commit to branch experimental
in repository libnet-dbus-perl.

commit e33fa8ca668635fdc83b77ba2b4d3c172511c873
Author: Daniel P. Berrange <dan at berrange.com>
Date:   Mon Sep 26 19:22:05 2005 +0000

    Clarified error message to show type character
---
 lib/Net/DBus/Binding/Iterator.pm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/Net/DBus/Binding/Iterator.pm b/lib/Net/DBus/Binding/Iterator.pm
index 08d4ecf..c53e250 100644
--- a/lib/Net/DBus/Binding/Iterator.pm
+++ b/lib/Net/DBus/Binding/Iterator.pm
@@ -182,7 +182,7 @@ sub get {
 
 	my $actual = $self->get_arg_type;
 	if ($actual != $type) {
-	    die "requested type '$type' did not match wire type '$actual'";
+	    die "requested type '" . chr($type) . "' ($type) did not match wire type '" . chr($actual) . "' ($actual)";
 	}
     } else {
 	$type = $self->get_arg_type;
@@ -359,7 +359,7 @@ sub guess_type {
 	    die "cannot marshall reference of type " . ref($value);
 	}
     } else {
-	# XXX Should be bother trying to guess integer & floating point types ?
+	# XXX Should we bother trying to guess integer & floating point types ?
 	# I say sod it, because strongly typed languages will support introspection
 	# and loosely typed languages won't care about the difference
 	return &Net::DBus::Binding::Message::TYPE_STRING;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libnet-dbus-perl.git



More information about the Pkg-perl-cvs-commits mailing list