Warn if a language with given name not found

master
Yevgen Muntyan 2006-08-31 00:32:25 -05:00
parent 425c951b74
commit 536d5df25e
1 changed files with 3 additions and 0 deletions

View File

@ -161,6 +161,9 @@ moo_lang_mgr_get_lang (MooLangMgr *mgr,
id = _moo_lang_id_from_name (name);
lang = g_hash_table_lookup (mgr->langs, id);
if (!lang)
g_warning ("could not find language '%s'", name);
g_free (id);
return lang;
}