From efbd71eb2c3daa1f534a0b7f6902be95b2cd76e1 Mon Sep 17 00:00:00 2001
From: Monika Komorowska <mk8@sanger.ac.uk>
Date: Wed, 11 Jan 2012 11:57:02 +0000
Subject: [PATCH] added comment when source_id is not found

---
 misc-scripts/xref_mapping/XrefMapper/SubmitMapper.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/misc-scripts/xref_mapping/XrefMapper/SubmitMapper.pm b/misc-scripts/xref_mapping/XrefMapper/SubmitMapper.pm
index b3d4eb5528..6aedadb00c 100644
--- a/misc-scripts/xref_mapping/XrefMapper/SubmitMapper.pm
+++ b/misc-scripts/xref_mapping/XrefMapper/SubmitMapper.pm
@@ -215,7 +215,7 @@ sub dump_xref{
 	    }		    	    
 	}
 	if (!$source_found) {
-	    die "unable to find source_id for source name ". $sources[$k] ."\n";
+	    die "SubmitMapper:dump_xref unable to find source_id for source name ". $sources[$k] .".\nMake sure that the get_set_lists method is correct for species (SubmitMapper method which can be overriden in species.pm module)\n";
 	}
 	$exception_sql[$k] .= " AND x.source_id in (".join(', ',@tmp).") ";
 	
-- 
GitLab