rev 1347 - trunk/siesta

[prev] [thread] [next] [lurker] [Date index for 2003/08/13]

From: richardc
Subject: rev 1347 - trunk/siesta
Date: 21:50 on 13 Aug 2003
Author: richardc
Date: 2003-08-13 21:50:46 +0100 (Wed, 13 Aug 2003)
New Revision: 1347

Modified:
   trunk/siesta/Config.pm.in
Log:
let load_file blow a warning if the files doesn't exist - helps -f in nacho

Modified: trunk/siesta/Config.pm.in
===================================================================
--- trunk/siesta/Config.pm.in	2003-08-13 20:37:52 UTC (rev 1346)
+++ trunk/siesta/Config.pm.in	2003-08-13 20:50:46 UTC (rev 1347)
@@ -95,7 +95,7 @@
 sub load_from {
     shift;
     my $file = shift;
-    $config->file($file) if -e $file;
+    $config->file($file);
 
     @STORAGE   = ($config->get('storage_dsn'),
                   $config->get('storage_user'),
@@ -142,7 +142,7 @@
             DEFAULT => undef,
         },
     );
-    __PACKAGE__->load_from( $CONFIG_FILE );
+    __PACKAGE__->load_from( $CONFIG_FILE ) if -e $CONFIG_FILE;
 }
 
 1;

Generated at 13:57 on 01 Jul 2004 by mariachi 0.52