Subject: | Documentation Ambiguity leads to confusion |
With regards to discussion with kane_ on #catalyst.
The correct usage forr req->xmlrpc->error
is not
->error( "Error I want user to see ");
as one might expect it to be.
It should be
->error([ $error_code , "Error I want user to see "]);
otherwise it falls back to 500 Internal Sever Error.
---
[05:43:42] <kane_> jackal: $c->req->xmlrpc->error( "Error I want
user to see ");
[05:44:22] <kane_> jackal: looking at the source, that should be an arrayref
[05:45:01] <kane_> jackal: see sub finalize in
http://cpansearch.perl.org/src/MICHIEL/Catalyst-Plugin-Server-0.24/lib/Catalyst/Plugin/Server/XMLRPC.pm
[05:45:38] <kane_> jackal: that should probably be documented better.
Please chuck a ticket (+ doc patch would be even better) in the bug
tracker mentioned in the documentation
Code that demonstrates the call-time behaviour that occurs due to this
convfusion: http://scsys.co.uk:8001/28048