Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Getting useful information from a thrown error

by stevieb (Canon)
on Aug 23, 2022 at 21:39 UTC ( #11146341=note: print w/replies, xml ) Need Help??


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";

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11146341]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2023-03-26 08:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (63 votes). Check out past polls.

    Notices?