IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 11850


Ignore:
Timestamp:
Feb 16, 2007, 10:58:15 AM (19 years ago)
Author:
Paul Price
Message:

Fixing response when open() doesn't work.

File:
1 edited

Legend:

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

    r11835 r11850  
    11# Copyright (c) 2006  Paul Price, Joshua Hoblitt
    22#
    3 # $Id: Config.pm,v 1.30 2007-02-15 22:35:38 price Exp $
     3# $Id: Config.pm,v 1.31 2007-02-16 20:58:15 price Exp $
    44
    55package PS::IPP::Config;
     
    6161
    6262    my $file;                   # File handle
    63     open $file, $name;
    64     unless ($file) {
     63    unless (open $file, $name) {
    6564        carp "Unable to open ipprc file $name: $!";
    6665        exit($PS_EXIT_CONFIG_ERROR);
     
    142141    # Read the file
    143142    my $file;                   # File handle
    144     open $file, $realfile;
    145     unless ($file) {
     143    unless (open $file, $realfile) {
    146144        carp "Unable to open camera configuration file $realfile: $!";
    147145        exit($PS_EXIT_CONFIG_ERROR);
Note: See TracChangeset for help on using the changeset viewer.