Skip to content
Snippets Groups Projects
Commit f5a5a953 authored by Jan-hinnerk Vogel's avatar Jan-hinnerk Vogel
Browse files

throw() instead of die()  if program can't be found ......
parent 11c6ac6c
No related branches found
No related tags found
No related merge requests found
...@@ -5,6 +5,7 @@ use vars qw( %Program_Paths ); ...@@ -5,6 +5,7 @@ use vars qw( %Program_Paths );
use Carp; use Carp;
use Cwd; use Cwd;
use Sys::Hostname; use Sys::Hostname;
use Bio::EnsEMBL::Utils::Exception qw ( throw ) ;
sub import { sub import {
my $pkg = shift; my $pkg = shift;
...@@ -55,10 +56,9 @@ sub import { ...@@ -55,10 +56,9 @@ sub import {
} }
# Give informative death message if programs weren't found # Give informative death message if programs weren't found
if (@missing) { if (@missing) {
die "Unable to locate the following programs as '", throw("Unable to locate the following programs as '". (getpwuid($<))[0]. "' on host '". hostname(). "' :\t".
(getpwuid($<))[0], "' on host '", hostname(), "'\n", join ( " --> " , @missing )) ;
map "--> $_\n", @missing;
} }
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment