From f118e213d29dcea378db9109dce5973383b4c226 Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Tue, 18 Jul 2006 02:21:25 +0000 Subject: [PATCH] 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 --- src/as/com/threerings/util/MessageManager.as | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/as/com/threerings/util/MessageManager.as b/src/as/com/threerings/util/MessageManager.as index 0ecb25e99..38853e51e 100644 --- a/src/as/com/threerings/util/MessageManager.as +++ b/src/as/com/threerings/util/MessageManager.as @@ -126,14 +126,17 @@ public class MessageManager try { mbclass = rbundle.getString(MBUNDLE_CLASS_KEY); if (!StringUtil.isBlank(mbclass)) { - var clazz :Class = ClassUtil.getClassByName(mbclass); - bundle = new clazz(); + try { + 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 (t :Error) { - Log.getLog(this).warning( - "Failure instantiating custom message bundle " + - "[mbclass=" + mbclass + ", error=" + t + "]."); + } catch (eee :Error) { + // nada } }