From ca6923d973129cc585e7475c28c89369370aa405 Mon Sep 17 00:00:00 2001
From: Glenn Proctor <gp1@sanger.ac.uk>
Date: Mon, 4 Aug 2008 14:02:59 +0000
Subject: [PATCH] Better error info.

---
 misc-scripts/xref_projection/project_display_xrefs.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/misc-scripts/xref_projection/project_display_xrefs.pl b/misc-scripts/xref_projection/project_display_xrefs.pl
index e9a1047f40..88c27ad6c8 100644
--- a/misc-scripts/xref_projection/project_display_xrefs.pl
+++ b/misc-scripts/xref_projection/project_display_xrefs.pl
@@ -145,7 +145,7 @@ my %projections_by_source;
 foreach my $to_species (@to_multi) {
 
   my $to_ga   = Bio::EnsEMBL::Registry->get_adaptor($to_species, 'core', 'Gene');
-  die("Can't get gene adaptor for $to_species - check database connection details\n") if (!$to_ga);
+  die("Can't get gene adaptor for $to_species - check database connection details; if species is new, add alias to Registry.pm\n") if (!$to_ga);
   my $to_dbea = Bio::EnsEMBL::Registry->get_adaptor($to_species, 'core', 'DBEntry');
 
   write_to_projection_db($to_ga->dbc(), $release, $from_species, $from_ga->dbc(), $to_species) unless ($no_database);
-- 
GitLab