Skip to content

Commit

Permalink
merge resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Cloud committed Feb 3, 2012
1 parent 7d389b6 commit 191dda7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/resources/scalagen/finagleClientFunction.scala
Expand Up @@ -10,6 +10,10 @@ private[this] val _{{name}}FailuresScope = _{{name}}Scope.scope("failures")
decodeResponse(_, {{localName}}_result.decoder)
} flatMap { result =>
{{resultUnwrapper}}
} rescue {
case e: SourcedException =>
serviceName foreach { e.serviceName = _ }
Future.exception(e)
} onSuccess { _ =>
_{{name}}SuccessCounter.incr()
} onFailure { ex =>
Expand Down

0 comments on commit 191dda7

Please sign in to comment.