Skip Menu |

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

Report information
The Basics
Id: 99889
Status: rejected
Priority: 0/
Queue: Type-Tiny

People
Owner: perl [...] toby.ink
Requestors: CAZADOR [...] cpan.org
Cc:
AdminCc:

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



Subject: In Type::Params please throw exception showing caller
When doing a $check->(@_); that fails the resultant exception has the information of the method_line number that check is on. Can we make it to show the caller information? Normally with carp I would do something like Carp::CarpLevel++. I don't want to make the whole to Error::Type::Tiny::CarpInternal since I call these functions from w/i the package itself.
On Wed Oct 29 11:03:50 2014, CAZADOR wrote: Show quoted text
> When doing a $check->(@_); that fails the resultant exception has the > information of the method_line number that check is on. Can we make > it to show the caller information? Normally with carp I would do > something like Carp::CarpLevel++. I don't want to make the whole to > Error::Type::Tiny::CarpInternal since I call these functions from w/i > the package itself.
This was a user error.