From 32aa8b091f439043ec2a4c7807366cb26eb9de19 Mon Sep 17 00:00:00 2001 From: Arne Georg Gleditsch Date: Sun, 17 Feb 2008 23:05:18 +0100 Subject: Improved error handling. --- lib/LXRng/Context.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/LXRng/Context.pm') diff --git a/lib/LXRng/Context.pm b/lib/LXRng/Context.pm index 6909c58..db486bf 100644 --- a/lib/LXRng/Context.pm +++ b/lib/LXRng/Context.pm @@ -82,7 +82,7 @@ sub new { if ($$self{'tree'} and $$self{'tree'} !~ /^[+]/) { my $tree = $$self{'tree'}; - die("No config for tree $tree") + return $self unless exists($$config{$tree}); $$self{'config'} = $$config{$tree}; -- cgit v1.2.3