Changeset 7331 for inc

Show
Ignore:
Timestamp:
10/06/05 00:58:17 (3 years ago)
Author:
gaal
Message:

PugsBuild::Config should check for existence, not defindedness, of known
lookup elements.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • inc/PugsBuild/Config.pm

    r5756 r7331  
    7070sub lookup { 
    7171    my($class, $what) = @_; 
     72    die "unknown option: $what" unless exists $Conf->{$what}; 
    7273    my $value = $Conf->{$what}; 
    73     die "unknown option: $what" unless defined $value; 
    7474    return $value; 
    7575}