From 195732b6b0832792bf177ea487646023b31d77b8 Mon Sep 17 00:00:00 2001 From: "Bradley M. Kuhn" Date: Wed, 30 Dec 2015 16:09:59 -0800 Subject: [PATCH] confess is better here than die. Maybe I should use it throughout? --- Supporters/lib/Supporters.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Supporters/lib/Supporters.pm b/Supporters/lib/Supporters.pm index b18f947..16b18ca 100644 --- a/Supporters/lib/Supporters.pm +++ b/Supporters/lib/Supporters.pm @@ -1077,7 +1077,7 @@ Returns: scalar boolean, which is true iff. the $id is valid and already in the sub _verifyId($$) { my($self, $id) = @_; - die "_verifyId() called with a non-numeric id" unless defined $id and looks_like_number($id); + confess "_verifyId(): called with a non-numeric id" unless defined $id and looks_like_number($id); my $val = $self->dbh()->selectall_hashref("SELECT id FROM donor WHERE id = " . $self->dbh->quote($id, 'SQL_INTEGER'), 'id');