IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 21320


Ignore:
Timestamp:
Feb 5, 2009, 10:29:43 AM (17 years ago)
Author:
eugene
Message:

clarify error message, handle missing dbname

File:
1 edited

Legend:

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

    r21311 r21320  
    11# Copyright (c) 2006  Paul Price, Joshua Hoblitt
    22#
    3 # $Id: Config.pm,v 1.95 2009-02-05 19:38:23 bills Exp $
     3# $Id: Config.pm,v 1.96 2009-02-05 20:29:43 eugene Exp $
    44
    55package PS::IPP::Config;
     
    351351    my $admindb = "ippadmin";
    352352
    353     die "database configuration set up" unless defined($dbserver);
    354     die "database configuration set up" unless defined($dbuser);
    355     die "database configuration set up" unless defined($dbpassword);
     353    die "dbserver not defined in configuration" unless defined($dbserver);
     354    die "dbuser not defined in configuration" unless defined($dbuser);
     355    die "dbpassword not defined in configuration" unless defined($dbpassword);
     356    die "dbname not defined in configuration" unless defined($dbname);
    356357
    357358    my $dsn = "DBI:mysql:host=$dbserver;database=$admindb";
Note: See TracChangeset for help on using the changeset viewer.