parser: Update MWTidy::checkErrors() error message
authorTimo Tijhof <krinklemail@gmail.com>
Sun, 18 Mar 2018 04:33:32 +0000 (21:33 -0700)
committerKrinkle <krinklemail@gmail.com>
Wed, 21 Mar 2018 03:56:05 +0000 (03:56 +0000)
When setting the following on PHP 7, the produced error message
did not make sense (references something about HHVM).

 > $wgValidateAllHtml = true
 > $wgTidyConfig = ['driver' => 'RemexHtml'];

Change-Id: I5f14505639a79aca66f570a9a00c38cdea0cc1ba

includes/parser/MWTidy.php

index ffc884e..330859d 100644 (file)
@@ -69,7 +69,7 @@ class MWTidy {
                if ( $driver->supportsValidate() ) {
                        return $driver->validate( $text, $errorStr );
                } else {
-                       throw new MWException( __METHOD__ . ": error text return from HHVM tidy is not supported" );
+                       throw new MWException( __METHOD__ . ": tidy driver does not support validate()" );
                }
        }