- Timestamp:
- Mar 17, 2009, 12:08:50 PM (17 years ago)
- Location:
- branches/cnb_branches/cnb_branch_20090301
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ippScripts/scripts/fake_imfile.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/cnb_branches/cnb_branch_20090301
-
Property svn:mergeinfo
set to (toggle deleted branches)
/trunk merged eligible /branches/eam_branches/eam_branch_20090303 23158-23228
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
branches/cnb_branches/cnb_branch_20090301/ippScripts/scripts/fake_imfile.pl
r22430 r23352 36 36 use PS::IPP::Metadata::Config; 37 37 use PS::IPP::Config 1.01 qw( :standard ); 38 39 my $ipprc = PS::IPP::Config->new(); # IPP configuration40 38 41 39 use Getopt::Long qw( GetOptions :config auto_help auto_version gnu_getopt ); … … 82 80 defined $outroot; 83 81 84 # Unhandled exceptions should be passed on to my_die so they get pushed into the database 85 $SIG{__DIE__} = sub { die @_ if $^S; 86 my_die( $_[0], $exp_id, $fake_id, $class_id, $PS_EXIT_UNKNOWN_ERROR ); }; 87 88 $ipprc->define_camera($camera); 89 90 my $logDest = $ipprc->filename("LOG.IMFILE", $outroot, $class_id) or &my_die("Missing entry from camera config", $exp_id, $fake_id, $class_id, $PS_EXIT_CONFIG_ERROR); 91 92 $ipprc->redirect_output($logDest) if $redirect; 82 my $ipprc = PS::IPP::Config->new( $camera ) or my_die( "Unable to set up", $exp_id, $fake_id, $class_id, $PS_EXIT_CONFIG_ERROR ); # IPP configuration 83 my $logDest = $ipprc->filename("LOG.IMFILE", $outroot, $class_id) or &my_die("Missing entry from camera config", $exp_id, $fake_id, $class_id, $PS_EXIT_CONFIG_ERROR); 84 $ipprc->redirect_output($logDest) or my_die( "Unable to redirect output", $exp_id, $fake_id, $class_id, $PS_EXIT_SYS_ERROR ) if $redirect; 93 85 94 86 # Recipes to use based on reduction class … … 214 206 my $exit_code = shift; # Exit code to add 215 207 208 $exit_code = $PS_EXIT_PROG_ERROR unless defined $exit_code; 209 216 210 carp($msg); 217 211 if (defined $exp_id and defined $fake_id and defined $class_id and not $no_update) {
Note:
See TracChangeset
for help on using the changeset viewer.
