Skip Menu |

This queue is for tickets about the Try-Tiny CPAN distribution.

Report information
The Basics
Id: 53216
Status: resolved
Priority: 0/
Queue: Try-Tiny

People
Owner: Nobody in particular
Requestors: THEPLER [...] cpan.org
Cc:
AdminCc:

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




The docs for "try" mention "If no error occurred the value from the first block is returned...", but they do not mention what is returned if an error did occur.  Turns out that the value from the "catch" block is returned.  It would be nice if the docs explained that.

I'd provide a doc patch, but I don't really know why this is the desired behavior.  It does appear to be tested though.  At first I expected "try" to just do a bare "return;" if an error occurred, regardless of whether there was a catch block.  I'm not sure what's right, so some docs would help.

Thanks,
-Todd
As of version 0.04, the docs do explain this much better. Thanks. -Todd