Skip Menu |

This queue is for tickets about the AppConfig CPAN distribution.

Report information
The Basics
Id: 36274
Status: new
Priority: 0/
Queue: AppConfig

People
Owner: Nobody in particular
Requestors: kgalinsky [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in:
  • 1.65
  • 1.66
Fixed in: (no value)



Subject: [PATCH] Method set in AppConfig::State tries to print undefined value
If you try to set a state object's variable with an undefined value, and the variable requires validation and undefined will fail that validation, warnings in Perl will warn you about it. Not a huge bug, but annoying. Patch is attached.
Subject: State.pm.patch
--- AppConfig/State.pm 2008-05-29 09:26:50.552200000 -0400 +++ AppConfig-1.66/lib/AppConfig/State.pm 2007-05-30 07:24:20.000000000 -0400 @@ -322,7 +322,8 @@ # call the validate($variable, $value) method to perform any validation unless ($self->_validate($variable, $value)) { - $self->_error("$variable: invalid value: $value"); + if (defined $value) { $self->_error("$variable: invalid value: $value") } + else { $self->_error("$variable: undefined value") } return 0; }