IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 8, 2008, 11:28:41 AM (18 years ago)
Author:
eugene
Message:

fixed some minor usage bugs

File:
1 edited

Legend:

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

    r16375 r16379  
    9090    unless ($success) {
    9191        $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
    92         &my_die("Unable to perform dsget: $error_code", $exp_name, $inst, $telescope, $class, $class_id, $error_code);
     92        &my_die("Unable to perform dsget: $error_code", $exp_name, $inst, $telescope, $class, $class_id, $uri, $error_code);
    9393    }
    9494} else {
     
    113113    unless ($success) {
    114114        $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
    115         warn("Unable to perform pztool -copydone: $error_code\n");
     115        warn("Unable to perform $command: $error_code\n");
    116116        exit($error_code);
    117117    }
     
    122122sub my_die
    123123{
    124     my $msg = shift; # Warning message on die
    125     my $exp_name = shift; # Chiptool identifier
    126     my $inst = shift; # Chiptool identifier
     124    my $msg       = shift; # Warning message on die
     125    my $exp_name  = shift; # Chiptool identifier
     126    my $inst      = shift; # Chiptool identifier
    127127    my $telescope = shift; # Class identifier
    128     my $class = shift; # Class identifier
    129     my $class_id = shift; # Class identifier
     128    my $class     = shift; # Class identifier
     129    my $class_id  = shift; # Class identifier
     130    my $uri       = shift; # Class identifier
    130131    my $exit_code = shift; # Exit code to add
    131132
     
    140141        $command .= " -class $class";
    141142        $command .= " -class_id $class_id";
     143        $command .= " -uri $uri";
    142144        $command .= " -code $exit_code";
    143145        $command .= " -dbname $dbname" if defined $dbname;
Note: See TracChangeset for help on using the changeset viewer.