Commit 53f84f07 authored by Leo Gordon's avatar Leo Gordon
Browse files

simplify debugging of this module by showing the stack trace

parent 734ff689
......@@ -48,7 +48,7 @@ use strict;
use warnings;
use Bio::EnsEMBL::Hive::Analysis;
use Bio::EnsEMBL::Hive::Utils qw(destringify);
use Bio::EnsEMBL::Hive::Utils qw(destringify throw);
use Bio::EnsEMBL::Hive::Utils::GraphViz;
use Bio::EnsEMBL::Hive::Utils::Config;
......@@ -148,7 +148,7 @@ sub _midpoint_name {
if($df_rule and scalar($df_rule)=~/\((\w+)\)/) { # a unique id of a df_rule assuming dbIDs are not available
return 'dfr_'.$1.'_mp';
} else {
die "Wrong argument to _midpoint_name";
throw("Wrong argument to _midpoint_name");
}
}
......
Markdown is supported
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