From 747e51939bb7c2e5e1009d782a3952258e65d1bd Mon Sep 17 00:00:00 2001 From: Caleb Cushing Date: Thu, 5 Sep 2013 00:24:58 -0500 Subject: [PATCH] change die to confess This is likely to fail several levels deep from where you're actually making the mistake. A stack trace is needed for finding the real location of the error. --- lib/DBR/Record/Base.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/DBR/Record/Base.pm b/lib/DBR/Record/Base.pm index d0d4d8b..c79fad8 100644 --- a/lib/DBR/Record/Base.pm +++ b/lib/DBR/Record/Base.pm @@ -35,7 +35,7 @@ sub gethash{ sub next { croak "Can not call next on a record" } -sub TO_JSON { die "This part doesn't work yet" } #HERE - this needs work +sub TO_JSON { confess "This part doesn't work yet" } #HERE - this needs work #sub DESTROY { print STDERR "RECORD DESTROY $_[0]\n"} 1;