Warn if a language with given name not found
parent
425c951b74
commit
536d5df25e
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue