From 4c9e29f729e2332c2a13af4cd5925d78d4b24cd9 Mon Sep 17 00:00:00 2001
From: Monika Komorowska <mk8@sanger.ac.uk>
Date: Fri, 11 Mar 2011 15:44:45 +0000
Subject: [PATCH] Changed error message when species is not defined in sub
 get_DBAdaptor

---
 modules/Bio/EnsEMBL/Registry.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/Bio/EnsEMBL/Registry.pm b/modules/Bio/EnsEMBL/Registry.pm
index 5359ea9e41..c8c3d9843f 100644
--- a/modules/Bio/EnsEMBL/Registry.pm
+++ b/modules/Bio/EnsEMBL/Registry.pm
@@ -564,7 +564,7 @@ sub add_DBAdaptor {
 
 sub get_DBAdaptor {
   my ( $class, $species, $group , $no_alias_check) = @_;
-throw 'arrggh for '.$species if ! defined $species;
+throw 'Species not defined.' if ! defined $species;
   if(!defined($no_alias_check) or !$no_alias_check){
     $species = $class->get_alias($species);
   }
-- 
GitLab