Changeset 1538 in ProjectBuilder


Ignore:
Timestamp:
May 13, 2012, 12:06:20 PM (12 years ago)
Author:
Bruno Cornec
Message:
  • Use more confess instead of die in Conf.pm to debug a calling issue
File:
1 edited

Legend:

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

    r1528 r1538  
    104104
    105105# Read the content of the config file and cache it in the %h hash further availble for queries
    106 open(CONF,$cf) || die "Unable to open $cf";
     106open(CONF,$cf) || confess "Unable to open $cf";
    107107while(<CONF>) {
    108108    if (/^\s*([A-z0-9-_.]+)\s+([[A-z0-9-_.]+)\s*=\s*(.+)$/) {
     
    369369}
    370370
    371 die "No params found for $proj" if (not @return);
     371confess "No params found for $proj" if (not @return);
    372372
    373373foreach my $i (0..$#param) {
Note: See TracChangeset for help on using the changeset viewer.