Skip Menu |

This queue is for tickets about the Moose CPAN distribution.

Report information
The Basics
Id: 54817
Status: resolved
Priority: 0/
Queue: Moose

People
Owner: Nobody in particular
Requestors: randomcoder1 [...] gmail.com
Cc:
AdminCc:

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



Subject: debug-friendly error messages
Moose usually has helpful error messages when something goes wrong but in the case of an attribute of type ArrayRef[Int] I get this: Attribute (perm) does not pass the type constraint because: Validation failed for 'ArrayRef[Int]' failed with value ARRAY(0x8953908) I know where to look to find the problem but ARRAY(0x8953908) isn't helping, instead I think it would be helpful if the actual contents of the attribute would be printed with some Dumper module of your choice.
On Sat Feb 20 01:04:49 2010, WSDOOKADR wrote: Show quoted text
> Moose usually has helpful error messages when something goes wrong but > in the case of an attribute of type ArrayRef[Int] I get this: > > Attribute (perm) does not pass the type constraint because: Validation > failed for 'ArrayRef[Int]' failed with value ARRAY(0x8953908) > > I know where to look to find the problem but ARRAY(0x8953908) isn't > helping, instead I think it would be helpful if the actual contents of > the attribute would be printed with some Dumper module of your choice.
I forgot to mention that in the case of ArrayRefs or HashRefs with big contents , the dump of the data structure should be truncated.
This is fixed in 2.0002, if you install Devel::PartialDump 0.14.