IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 27689


Ignore:
Timestamp:
Apr 14, 2010, 4:49:24 PM (16 years ago)
Author:
Paul Price
Message:

Don't die just because we can't find the file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/diff_outputs.pl

    r27026 r27689  
    88use strict;
    99
     10use Carp;
    1011use DBI;
    1112use constant DB_SOCKET => '/var/run/mysqld/mysqld.sock'; # Socket for mysql
     
    3536                             'JPEG1' => '.b1.jpg', # Binned JPEG
    3637                             'JPEG2' => '.b2.jpg', # Binned JPEG
    37 #                             'KERNEL' => '.subkernel', # Convolution kernel
     38                             'KERNEL' => '.subkernel', # Convolution kernel
    3839                             'INVERSE.IMAGE' => '.inv.fits', # Image
    3940                             'INVERSE.MASK' => '.inv.mask.fits', # Mask
     
    140141
    141142    my $file = "$path$ext";     # File
    142     my $source = `ipp_datapath.pl $file` or die "Unable to locate $file\n"; # Actual file
     143    my $source = `ipp_datapath.pl $file` or (carp "Unable to locate $file\n" and return); # Actual file
    143144    chomp $source;
    144145    my ($target) = $source =~ m|^.*[:/](.*)|; # Target name
    145     !system "cp $source $target" or die "Unable to copy $source\n";
     146    !system "cp $source $target" or carp "Unable to copy $source\n";
    146147}
Note: See TracChangeset for help on using the changeset viewer.