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 );
use Carp;
use Cwd;
use Sys::Hostname;
use Bio::EnsEMBL::Utils::Exception qw ( throw ) ;
sub import {
my $pkg = shift;
......@@ -55,10 +56,9 @@ sub import {
}
# Give informative death message if programs weren't found
if (@missing) {
die "Unable to locate the following programs as '",
(getpwuid($<))[0], "' on host '", hostname(), "'\n",
map "--> $_\n", @missing;
if (@missing) {
throw("Unable to locate the following programs as '". (getpwuid($<))[0]. "' on host '". hostname(). "' :\t".
join ( " --> " , @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