Was logging warnings for any message bundle that didn't use a custom
class. Fixed. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4271 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -126,14 +126,17 @@ public class MessageManager
|
|||||||
try {
|
try {
|
||||||
mbclass = rbundle.getString(MBUNDLE_CLASS_KEY);
|
mbclass = rbundle.getString(MBUNDLE_CLASS_KEY);
|
||||||
if (!StringUtil.isBlank(mbclass)) {
|
if (!StringUtil.isBlank(mbclass)) {
|
||||||
var clazz :Class = ClassUtil.getClassByName(mbclass);
|
try {
|
||||||
bundle = new clazz();
|
var clazz :Class = ClassUtil.getClassByName(mbclass);
|
||||||
|
bundle = new clazz();
|
||||||
|
} catch (ee :Error) {
|
||||||
|
Log.getLog(this).warning(
|
||||||
|
"Failure instantiating custom message bundle " +
|
||||||
|
"[mbclass=" + mbclass + ", error=" + ee + "].");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
} catch (eee :Error) {
|
||||||
} catch (t :Error) {
|
// nada
|
||||||
Log.getLog(this).warning(
|
|
||||||
"Failure instantiating custom message bundle " +
|
|
||||||
"[mbclass=" + mbclass + ", error=" + t + "].");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user