IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 8, 2007, 5:55:22 PM (19 years ago)
Author:
Paul Price
Message:

Removing croak in favour of carp followed by exit, using an appropriate exit code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/PS-IPP-Config/lib/PS/IPP/Metadata/Stats.pm

    r9522 r11728  
    11# Copyright (c) 2006  Paul Price, Joshua Hoblitt
    22#
    3 # $Id: Stats.pm,v 1.12 2006-10-12 23:42:56 price Exp $
     3# $Id: Stats.pm,v 1.13 2007-02-09 03:55:22 price Exp $
    44
    55package PS::IPP::Metadata::Stats;
     
    1010our $VERSION = '0.02';
    1111
    12 use Carp qw( carp croak );
     12use Carp qw( carp );
    1313use Statistics::Descriptive;
     14
     15use PS::IPP::Config qw(
     16    $PS_EXIT_SUCCESS
     17    $PS_EXIT_UNKNOWN_ERROR
     18    $PS_EXIT_SYS_ERROR
     19    $PS_EXIT_CONFIG_ERROR
     20    $PS_EXIT_PROG_ERROR
     21    $PS_EXIT_DATA_ERROR
     22    $PS_EXIT_TIMEOUT_ERROR
     23    );
    1424
    1525use base qw( Class::Accessor::Fast );
     
    233243    }
    234244
    235     croak "Unrecognised type (", $type, ") for value of ", $name, "\n";
     245    carp "Unrecognised type (", $type, ") for value of ", $name, "\n";
     246    exit($PS_EXIT_PROG_ERROR);
    236247    return;
    237248}
Note: See TracChangeset for help on using the changeset viewer.