From 3746dfb0ef026227fbc5c4eb564133ba6073ccd7 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Fri, 17 Feb 2006 14:22:53 +0000 Subject: try to display an error message when the config file can't be opened --- tools/draklive | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') 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"; }, -- cgit v1.2.1