From fa2c116330bd2023dc14a09c0e8a986d62dc6be0 Mon Sep 17 00:00:00 2001 From: "timeless%mozdev.org" <> Date: Thu, 16 Oct 2003 05:48:09 +0000 Subject: Bug 108528 - knob is not defined doesn't explain to 2001110503 users what to do patch by caduvall@glue.umd.edu r=timeless a=justdave --- CGI.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'CGI.pl') diff --git a/CGI.pl b/CGI.pl index bcd9a7f90..06db6fe55 100644 --- a/CGI.pl +++ b/CGI.pl @@ -111,10 +111,11 @@ sub CheckFormField (\%$;\@) { sub CheckFormFieldDefined (\%$) { my ($formRef, # a reference to the form to check (a hash) $fieldname, # the fieldname to check + $info, # (optional) error message to give ) = @_; if (!defined $formRef->{$fieldname}) { - ThrowCodeError("undefined_field", { field => $fieldname }); + ThrowCodeError("undefined_field", { field => $fieldname, info => $info }); } } -- cgit v1.2.3-24-g4f1b