summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2006-02-17 14:22:53 +0000
committerOlivier Blin <oblin@mandriva.org>2006-02-17 14:22:53 +0000
commit3746dfb0ef026227fbc5c4eb564133ba6073ccd7 (patch)
tree7e6ad058cfe8c657b2cc4899a991f726eb58bc63 /tools
parentec5451f3fa296e77907abd1c517a95434e713d39 (diff)
downloaddrakx-3746dfb0ef026227fbc5c4eb564133ba6073ccd7.tar
drakx-3746dfb0ef026227fbc5c4eb564133ba6073ccd7.tar.gz
drakx-3746dfb0ef026227fbc5c4eb564133ba6073ccd7.tar.bz2
drakx-3746dfb0ef026227fbc5c4eb564133ba6073ccd7.tar.xz
drakx-3746dfb0ef026227fbc5c4eb564133ba6073ccd7.zip
try to display an error message when the config file can't be opened
Diffstat (limited to 'tools')
-rwxr-xr-xtools/draklive2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/draklive b/tools/draklive
index 1b5901ed9..06f413eb6 100755
--- a/tools/draklive
+++ b/tools/draklive
@@ -822,7 +822,7 @@ GetOptions(
"config:s" => sub {
my $path = $_[1];
#- don't use do(), since it can't see lexicals in the enclosing scope
- my $cfg = eval(cat_($path)) or die "unable to load $path";
+ my $cfg = eval(cat_($path)) or die "unable to load $path: $@";
put_in_hash(\%live, $cfg);
print "loaded $path as config file\n";
},