From 812feab5b526cd6edccc6872f41115fad089283e Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Fri, 7 Dec 2007 03:50:27 +0000 Subject: [PATCH] We should always wrap calls to usercode with a try/catch. Check. We should always log any errors thrown from usercode. Oops. Fixed. git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@517 c613c5cb-e716-0410-b11b-feb51c14d237 --- src/as/com/threerings/ezgame/client/GameControlBackend.as | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/as/com/threerings/ezgame/client/GameControlBackend.as b/src/as/com/threerings/ezgame/client/GameControlBackend.as index 4e0f381d..2bfb4714 100644 --- a/src/as/com/threerings/ezgame/client/GameControlBackend.as +++ b/src/as/com/threerings/ezgame/client/GameControlBackend.as @@ -420,7 +420,8 @@ public class GameControlBackend try { fn(ObjectMarshaller.decode(cookie.cookie)); } catch (err :Error) { - // cope + log.warning("Error in user-code: " + err); + log.logStackTrace(err); } } }