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