Ignore:
Timestamp:
Dec 5, 2009, 6:32:04 PM (10 years ago)
Author:
bruno
Message:
  • Improve conf when starting from scratch (pbproj undifined)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb-modules/lib/ProjectBuilder/Conf.pm

    r898 r932  
    306306my @param = @_;
    307307my @return = pb_conf_get_if(@param);
    308 
    309 die "No params found for $ENV{'PBPROJ'}" if (not @return);
     308my $proj = undef;
     309
     310if (not defined $ENV{'PBPROJ'}) {
     311    $proj = "unknown";
     312} else {
     313    $proj = $ENV{'PBPROJ'};
     314}
     315
     316die "No params found for $proj" if (not @return);
    310317
    311318foreach my $i (0..$#param) {
    312     die "No $param[$i] defined for $ENV{'PBPROJ'}" if (not defined $return[$i]);
     319    die "No $param[$i] defined for $proj" if (not defined $return[$i]);
    313320}
    314321return(@return);
Note: See TracChangeset for help on using the changeset viewer.