diff options
author | Olivier Blin <oblin@mandriva.org> | 2006-02-17 14:22:53 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2006-02-17 14:22:53 +0000 |
commit | 3746dfb0ef026227fbc5c4eb564133ba6073ccd7 (patch) | |
tree | 7e6ad058cfe8c657b2cc4899a991f726eb58bc63 /tools | |
parent | ec5451f3fa296e77907abd1c517a95434e713d39 (diff) | |
download | drakx-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-x | tools/draklive | 2 |
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"; }, |