Subject: | Amazon error message not returned |
_dispatch subroutine tries to get the error message from the 'Errors'
hash key, which does not exist. Amazon's error message is then not
included in the subsequent die message.
A patch to fix this has been attached.
Distribution: Amazon-SQS-Simple-0.7
Perl version: v5.8.8
OS: OS X Leopard
Subject: | Base.pm-error-response.patch |
--- Base.pm 2008-03-15 22:56:15.000000000 +0200
+++ Base.pm.mod 2008-03-15 22:56:02.000000000 +0200
@@ -89,7 +89,7 @@
my $msg;
eval {
my $href = XMLin($response->content);
- $msg = $href->{Errors}{Error}{Message};
+ $msg = $href->{Error}{Message};
};
my $error = "ERROR: On calling $params->{Action}: " . $response->status_line;