- Timestamp:
- Apr 3, 2019, 9:26:17 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb-modules/lib/ProjectBuilder/Conf.pm
r2397 r2402 229 229 230 230 pb_log(1,"Loading YAML conf file $cf\n"); 231 my $lh0 = $ldfunc->($cf); 231 my $lh0; 232 eval { $lh0 = $ldfunc->($cf); }; 233 if ($@) { 234 # Repeat to get the YAML error line 235 $lh0 = $ldfunc->($cf); 236 die "Unable to analyze YAML conf file $cf\n"; 237 } 232 238 foreach my $k (keys %$lh0) { 233 239 if (defined $lh->{$k}) { … … 561 567 562 568 pb_log(0,"Converting v0 conf file $orig to v1 conf file $dest\n"); 563 # We can't just write the YAML if we want to ckeep comments !569 # We can't just write the YAML if we want to keep comments ! 564 570 while (<ORIG>) { 565 571 if ($_ =~ /^#/) {
Note:
See TracChangeset
for help on using the changeset viewer.