Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ensembl-gh-mirror
ensembl-hive
Commits
5fe24972
Commit
5fe24972
authored
Mar 18, 2014
by
Leo Gordon
Browse files
better error reporting
parent
57360a9e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
modules/Bio/EnsEMBL/Hive/Storable.pm
modules/Bio/EnsEMBL/Hive/Storable.pm
+2
-1
modules/Bio/EnsEMBL/Hive/URLFactory.pm
modules/Bio/EnsEMBL/Hive/URLFactory.pm
+2
-0
No files found.
modules/Bio/EnsEMBL/Hive/Storable.pm
View file @
5fe24972
...
...
@@ -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
(
@
_
)
{
...
...
modules/Bio/EnsEMBL/Hive/URLFactory.pm
View file @
5fe24972
...
...
@@ -128,6 +128,8 @@ sub fetch {
$tparam_value
?
(
insertion_method
=>
$tparam_value
)
:
(),
);
}
}
else
{
warn
"
Could not parse URL '
$url
'
";
}
return
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment