Skip Menu |

This queue is for tickets about the Net-OAuth-Simple CPAN distribution.

Report information
The Basics
Id: 60437
Status: resolved
Priority: 0/
Queue: Net-OAuth-Simple

People
Owner: Nobody in particular
Requestors: olaf [...] wundersolutions.com
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: More helpful error message in failed _make_request
Hi, First off, thanks for your hard work. :) I've been messing around with this module today and I found that the error message returned when a call fails in _make_request was not all that clear. I was getting something like: GET on Net::OAuth::V1_0A::RequestTokenRequest=HASH(0x1a946c0) failed: 405 Method Not Allowed at oauth.pl line 33 I found that this helped a lot: return $self->_error("$method on " . $request->normalized_request_url . " failed: ".$response->status_line . " " . $response->content ); That gave me the full url plus the content the server returned. I think tweaking the error message a bit or adding a verbose option might be helpful in this case. Best, Olaf
Show quoted text
> I found that this helped a lot: > > return $self->_error("$method on " . > $request->normalized_request_url . " failed: ".$response->status_line . > " " . $response->content ); > > That gave me the full url plus the content the server returned. I think > tweaking the error message a bit or adding a verbose option might be > helpful in this case.
Gah, I could have sworn that I'd done that already. I'll fix it in SVN and then do a release very soon.
Fixed in SVN.