diff options
| author | Arne Georg Gleditsch <argggh@lxr.linpro.no> | 2008-02-17 23:05:18 +0100 | 
|---|---|---|
| committer | Arne Georg Gleditsch <argggh@lxr.linpro.no> | 2008-02-17 23:05:18 +0100 | 
| commit | 32aa8b091f439043ec2a4c7807366cb26eb9de19 (patch) | |
| tree | ee64267c7a43aaf412edbf0a9bfcb9f95b871885 /lib/LXRng/Context.pm | |
| parent | dd670fda9351186a1bf51de2a3b8192a9cda301c (diff) | |
Improved error handling.
Diffstat (limited to 'lib/LXRng/Context.pm')
| -rw-r--r-- | lib/LXRng/Context.pm | 2 | 
1 files changed, 1 insertions, 1 deletions
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};  | 
