IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 29, 2008, 6:28:25 PM (18 years ago)
Author:
bills
Message:

If exposure is not found, print an error message and return ENOENT

File:
1 edited

Legend:

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

    r17671 r17861  
    6262    my $stmt = $dbh->prepare($query);
    6363    $stmt->execute();
     64    my $nfiles = 0;
    6465    while (my $ref = $stmt->fetchrow_hashref()) {
    6566        my $uri = $ref->{uri};
     
    7677            $path =~ s/^file\:\/\///;
    7778        }
     79        $nfiles++;
    7880        print "$path\n";
     81    }
     82    if (!$nfiles) {
     83        print STDERR "exposure $exp_name not found\n";
     84        exit 2;
    7985    }
    8086}
Note: See TracChangeset for help on using the changeset viewer.