Subject: | Incorrect error message when passing unknown handlers to handle_server_response |
Date: | Mon, 14 Jun 2010 10:49:31 +0100 |
To: | bug-Net-OpenID-Consumer [...] rt.cpan.org |
From: | James Mastros <james [...] mastros.biz> |
Passing an unknown callback to handle_server_response will result in
the exception "Unknown callbacks
setup_required,error,not_openid,verified,cancelled" ... which doesn't
actually give the name of the unsupported callback, but rather of the
supported ones. Line 362 of Consumer.pm should be
"Carp::croak("Unknown callbacks ".join(',', keys %callbacks_in)) if
%callbacks_in;" instead of "Carp::croak("Unknown callbacks ".join(',',
keys %callbacks)) if %callbacks_in;", I think. (Untested thus far.)
Thank you,
-=- James Mastros