structured error reporting problem with Relax-NG should fix #314881 and

* relaxng.c: structured error reporting problem with Relax-NG
  should fix #314881 and #314759
Daniel
diff --git a/ChangeLog b/ChangeLog
index 31700e5..4011087 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Sat Sep  3 16:26:55 CEST 2005 Daniel Veillard <daniel@veillard.com>
+
+	* relaxng.c: structured error reporting problem with Relax-NG
+	  should fix #314881 and #314759
+
 Sat Sep  3 15:42:29 CEST 2005 Daniel Veillard <daniel@veillard.com>
 
 	* pattern.c: fixes a portability problem raised by C370 on Z/OS
diff --git a/relaxng.c b/relaxng.c
index f315e1e..c6ce936 100644
--- a/relaxng.c
+++ b/relaxng.c
@@ -2220,9 +2220,6 @@
 {
     xmlChar *msg;
 
-    if (ctxt->error == NULL)
-        return;
-
 #ifdef DEBUG_ERROR
     xmlGenericError(xmlGenericErrorContext, "Show error %d\n", err);
 #endif
@@ -2332,7 +2329,7 @@
                         xmlRelaxNGValidErr err, const xmlChar * arg1,
                         const xmlChar * arg2, int dup)
 {
-    if ((ctxt == NULL) || (ctxt->error == NULL))
+    if (ctxt == NULL)
         return;
 
 #ifdef DEBUG_ERROR