From: Aaron Schulz Date: Mon, 18 Aug 2008 03:30:36 +0000 (+0000) Subject: be more specific in error X-Git-Tag: 1.31.0-rc.0~45846 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=commitdiff_plain;h=3ea68e2fc62bd01773a00ab3c69170d7f1e01005;p=lhc%2Fweb%2Fwiklou.git be more specific in error --- diff --git a/languages/Language.php b/languages/Language.php index 5138261875..52537dc616 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -1689,7 +1689,9 @@ class Language { } else { # Fall back to English if local list is incomplete $magicWords =& Language::getMagicWords(); - if ( !isset($magicWords[$mw->mId]) ) { throw new MWException("Magic word not found" ); } + if ( !isset($magicWords[$mw->mId]) ) { + throw new MWException("Magic word '{$mw->mId}' not found" ); + } $rawEntry = $magicWords[$mw->mId]; } }