IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 4, 2007, 9:41:23 AM (19 years ago)
Author:
eugene
Message:

catch errors in config before setting camera

File:
1 edited

Legend:

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

    r13174 r13238  
    11# Copyright (c) 2006  Paul Price, Joshua Hoblitt
    22#
    3 # $Id: Config.pm,v 1.38 2007-05-03 01:44:40 price Exp $
     3# $Id: Config.pm,v 1.39 2007-05-04 19:41:23 eugene Exp $
    44
    55package PS::IPP::Config;
     
    150150    close $file;
    151151    $self->{camera} = $parser->parse( join '', @contents); # The parsed metadata config
     152
     153    unless (defined $self->{camera}) {
     154        carp "Failure to define camera";
     155        exit($PS_EXIT_CONFIG_ERROR);
     156    }
    152157
    153158    # XXX why isn't just $self being returned here? -JH
Note: See TracChangeset for help on using the changeset viewer.