From 3ea68e2fc62bd01773a00ab3c69170d7f1e01005 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Mon, 18 Aug 2008 03:30:36 +0000 Subject: [PATCH] be more specific in error --- languages/Language.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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]; } } -- 2.20.1