IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 7, 2022, 4:37:45 PM (5 years ago)
Author:
eugene
Message:

gracefully handle certain errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20211108/ippTests/ippCheck/truth.pro

    r41941 r41980  
    11#!/usr/bin/env dvo
     2
     3# provides the following:
     4# make.truth.sources (camera) (expname) (source) (type)
     5# make.truth.sources.mpc (camera) (expname) (source)
     6# make.truth.sources.dvo (camera) (expname) (source)
     7# get.exposure.metadata (camera) (expname)
    28
    39$VERBOSE = 1           
     
    139145 $regcommand = regtool -dbname $dbname -processedexp -exp_name $expname
    140146
    141  queueload  regqueue -x "$regcommand"
     147 queueload -trap regqueue -x "$regcommand"
     148
    142149 queue2book regqueue regbook
    143150
     
    146153
    147154 if ($npages > 1)
    148    echo "ERROR: too many exposures for $word:0 $1 : $regcommand"
     155   echo "ERROR: too many exposures for $expname $1 : $regcommand"
    149156   book delete regbook
    150157   next
     
    152159
    153160 if ($npages < 1)
    154    echo "ERROR: missing exposure for $word:0 $1 : $regcommand"
     161   echo "ERROR: missing exposure for $expname $1 : $regcommand"
    155162   book delete regbook
    156163   next
Note: See TracChangeset for help on using the changeset viewer.