http://qs321.pair.com?node_id=11146341


in reply to Getting useful information from a thrown error

I misread the OP. The below can be ignored as it doesn't equate to the actual problem.

You just want to add your own custom fail report? Here's what I do at work:

throws_ok { $Keys->add_domain_mapping } qr/requires a.*domain/, "add_domain_mapping() croaks if no domain sent in ok"; throws_ok { $Keys->add_domain_mapping('blah.com') } qr/requires a.*selector/, "add_domain_mapping() croaks if no selector sent in ok";