Suppress XML error details when detailed output is off
authorBrion Vibber <brion@users.mediawiki.org>
Fri, 3 Feb 2006 09:28:13 +0000 (09:28 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Fri, 3 Feb 2006 09:28:13 +0000 (09:28 +0000)
maintenance/parserTests.inc

index 09295a9..63c4d13 100644 (file)
@@ -546,9 +546,9 @@ class ParserTest {
                print $this->termColor( '1;31' ) . 'FAILED!' . $this->termReset() . "\n";
                if( $this->showDiffs ) {
                        print $this->quickDiff( $result, $html );
-               }
-               if( !$this->wellFormed( $html ) ) {
-                       print "XML error: $this->mXmlError\n";
+                       if( !$this->wellFormed( $html ) ) {
+                               print "XML error: $this->mXmlError\n";
+                       }
                }
                return false;
        }