Commit 5fe24972 authored by Leo Gordon's avatar Leo Gordon
Browse files

better error reporting

parent 57360a9e
......@@ -46,6 +46,7 @@ use warnings;
use Scalar::Util qw(weaken);
use Bio::EnsEMBL::Hive;
use Bio::EnsEMBL::Hive::Utils ('throw');
use Bio::EnsEMBL::Hive::DBSQL::DBAdaptor;
......@@ -130,7 +131,7 @@ sub AUTOLOAD {
= Bio::EnsEMBL::Hive::DBSQL::DBAdaptor->parse_underscored_id_name( $name_to_parse );
unless($AdaptorType) {
die "Storable::AUTOLOAD : could not parse '$name_to_parse'";
throw("Storable::AUTOLOAD : could not parse '$name_to_parse'");
} elsif ($is_an_id) { # $name_to_parse was something like foo_dataflow_rule_id
if(@_) {
......
......@@ -128,6 +128,8 @@ sub fetch {
$tparam_value ? (insertion_method => $tparam_value) : (),
);
}
} else {
warn "Could not parse URL '$url'";
}
return;
}
......
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