make http round actions recover from failures
This commit is contained in:
parent
e95252f70c
commit
4c30c1a6e0
|
@ -124,7 +124,9 @@ object Round extends LilaController with TheftPrevention {
|
|||
|
||||
protected def performAndRedirect(fullId: String, makeMessage: String ⇒ Any) = Action {
|
||||
Async {
|
||||
perform(fullId, makeMessage) inject Redirect(routes.Round.player(fullId))
|
||||
perform(fullId, makeMessage) recover {
|
||||
case e: Exception ⇒ logwarn("[round] perform " + e.getMessage)
|
||||
} inject Redirect(routes.Round.player(fullId))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue