IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 22, 2010, 3:28:11 PM (16 years ago)
Author:
bills
Message:

handle case where magictool -inputskyfile returns no output

File:
1 edited

Legend:

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

    r27718 r29206  
    8383    unless ($success) {
    8484        $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
    85         &my_die("Unable to perform magictool -inputfile: $error_code", $magic_id, $error_code);
    86     }
    87 
    88     my $metadata = $mdcParser->parse(join "", @$stdout_buf) or
     85        &my_die("Unable to perform magictool -inputskyfile: $error_code", $magic_id, $error_code);
     86    }
     87
     88    my $magictool_output = join "", @$stdout_buf;
     89    # if there is no output from magictool that means that there are no
     90    # diffSkyfiles with non-zero quality. Set fault to a special value so
     91    # that these magicRuns can be recognized and dropped.
     92    &my_die("magictool -inputskyfile returned no output. Inputs are probably all bad quality.", $magic_id, 42)
     93        if !$magictool_output;
     94    my $metadata = $mdcParser->parse($magictool_output) or
    8995        &my_die("Unable to parse metadata config doc", $magic_id, $PS_EXIT_PROG_ERROR);
    9096
Note: See TracChangeset for help on using the changeset viewer.