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
This commit is contained in:
physikerwelt (Moritz Schubotz) 2013-05-26 23:30:38 +02:00 committed by physikerwelt
parent 41efc79495
commit ffdd0f6c87
2 changed files with 2 additions and 2 deletions

View File

@ -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.',
);

View File

@ -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" );