Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed void function with exception bug in Scala

  • Loading branch information...
commit c39d33843d11153d33a79e561528e3d979f6e167 1 parent 6ef2f7b
@bancek bancek authored
View
2  scrooge-generator/src/main/resources/scalagen/finagleClientFunction.scala
@@ -17,7 +17,7 @@ private[this] object {{__stats_name}} {
None
{{/hasThrows}}
{{#void}}
- Future.Done
+ exception.getOrElse(Future.Done)
{{/void}}
{{^void}}
exception.orElse(result.success.map(Future.value)).getOrElse(Future.exception(missingResult("{{clientFuncName}}")))
Please sign in to comment.
Something went wrong with that request. Please try again.