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
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user