From d5d9ef362302905ee940aff5895693a31eedf3ad Mon Sep 17 00:00:00 2001
From: Will Spooner <whs@sanger.ac.uk>
Date: Wed, 13 Jun 2007 08:52:04 +0000
Subject: [PATCH] Added a stderr print for errors from failed require of a
 parser module

---
 misc-scripts/xref_mapping/XrefParser/BaseParser.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/misc-scripts/xref_mapping/XrefParser/BaseParser.pm b/misc-scripts/xref_mapping/XrefParser/BaseParser.pm
index c3cc45e52f..fb71fd74dc 100644
--- a/misc-scripts/xref_mapping/XrefParser/BaseParser.pm
+++ b/misc-scripts/xref_mapping/XrefParser/BaseParser.pm
@@ -299,6 +299,7 @@ sub run {
               . "' with $parser\n";
 
             eval "require XrefParser::$parser";
+            $@ && warn( "[ERROR] Cannot require $parser: $@" );
             my $new = "XrefParser::$parser"->new();
 
             if ( defined $release_url ) {
-- 
GitLab