From 56da698eabff8c17a68f882d12298ae51a1c606c Mon Sep 17 00:00:00 2001
From: epaule <mh6@ebi.ac.uk>
Date: Mon, 12 Dec 2011 15:38:21 +0000
Subject: [PATCH] * fixed the UniProt version parsing * reenabled text SQL
 error messages, as error codes make it impossible to find out which error
 happened in which statement

---
 misc-scripts/xref_mapping/XrefParser/BaseParser.pm | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/misc-scripts/xref_mapping/XrefParser/BaseParser.pm b/misc-scripts/xref_mapping/XrefParser/BaseParser.pm
index 26c604f315..ba940bdd56 100644
--- a/misc-scripts/xref_mapping/XrefParser/BaseParser.pm
+++ b/misc-scripts/xref_mapping/XrefParser/BaseParser.pm
@@ -435,8 +435,9 @@ sub upload_xref_object_graphs {
 
 
     # disable error handling here as we'll do it ourselves
-    $xref_sth->{RaiseError} = 0;
-    $xref_sth->{PrintError} = 0;
+    # reenabled it, as errorcodes are really unhelpful
+    $xref_sth->{RaiseError} = 1;
+    $xref_sth->{PrintError} = 1;
 
     #################################################################################
     # End of sql needed to add xrefs, primary_xrefs, synonym, dependent_xrefs etc..
-- 
GitLab