From ffdd0f6c87db032e8ffc3a93c5bc526b07cf0926 Mon Sep 17 00:00:00 2001 From: "physikerwelt (Moritz Schubotz)" Date: Sun, 26 May 2013 23:30:38 +0200 Subject: [PATCH] Fix: Added details to error message The detailed information about the error messeage provided by the MW HTTP libraries has not been passed to the end-user output. Change-Id: I9cac67d8fc3a732a87c14e922670253e82f64bbb --- Math.i18n.php | 2 +- tests/MathLaTeXMLTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Math.i18n.php b/Math.i18n.php index 08affab..e592f17 100644 --- a/Math.i18n.php +++ b/Math.i18n.php @@ -36,7 +36,7 @@ $messages['en'] = array( 'math_notexvc' => 'Missing texvc executable; please see math/README to configure.', 'math_output_error' => 'Cannot store math image on filesystem.', 'math_latexml_timeout' => 'LaTeXML Timeout from \'$1\'', - 'math_latexml_invalidresponse' => 'LaTeXML Invalid response from server \'$1\':', + 'math_latexml_invalidresponse' => 'LaTeXML Invalid response (\'$2\') from server \'$1\':', 'math_latexml_invalidxml' => 'LaTeXML MathML is invalid XML.', 'math_latexml_invalidjson' => 'LaTeXML Server response is invalid JSON.', ); diff --git a/tests/MathLaTeXMLTest.php b/tests/MathLaTeXMLTest.php index 30adf0d..ce2d47c 100644 --- a/tests/MathLaTeXMLTest.php +++ b/tests/MathLaTeXMLTest.php @@ -44,7 +44,7 @@ class MathLaTeXMLTest extends MediaWikiTestCase { , "requestReturn is false if HTTP::post returns false." ); $this->assertEquals( false, $res , "res is false if HTTP:post returns false." ); - $errmsg = wfMessage( 'math_latexml_invalidresponse' , $url ) + $errmsg = wfMessage( 'math_latexml_invalidresponse' , $url,'' ) ->inContentLanguage()->escaped(); $this->assertContains( $errmsg, $error , "return an error if HTTP::post returns false" );