IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 30, 2006, 3:43:18 PM (20 years ago)
Author:
jhoblitt
Message:

check the return result of PS::IPP::Metadata::Config->parse()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/detrend_stack.pl

    r8714 r8715  
    5151        run(command => $command, verbose => 1);
    5252    die "Unable to perform dettool -processed: $error_code\n" if not $success;
    53     my $metadata = $mdcParser->parse(join "", @$stdout_buf); # Parsed metadata
     53    my $metadata = $mdcParser->parse(join "", @$stdout_buf)
     54        or die "unable to parse metadata config doc";
    5455    $files = parse_md_list($metadata);
    5556}
     
    8586    close $statsFile;
    8687    my $mdcParser = PS::IPP::Metadata::Config->new;     # Parser for metadata config files
    87     my $metadata = $mdcParser->parse(join "", @contents); # Metadata from the stats
     88    my $metadata = $mdcParser->parse(join "", @contents)
     89        or die "unable to parse metadata config doc";
    8890    $stats = PS::IPP::Metadata::Stats->new(); # Stats parser
    8991    $stats->parse($metadata) or die "Unable to find all values in statistics output.\n";
Note: See TracChangeset for help on using the changeset viewer.