Skip to content

Conversation

@tillrohrmann
Copy link
Contributor

Akka's AskSupport trait requires that failures are wrapped in a akka.actor.Status.Failure
to be recognized. Internally the trait will unwrap the failure and wrap it in a
scala.util.Failure instance. However, it does not recognize the scala Failure when given
to the AskSupport trait. As a consequence it would wrap scala.util.Failure in a
scala.util.Success instance.

… AskSupport

Akka's AskSupport trait requires that failures are wrapped in a akka.actor.Status.Failure
to be recognized. Internally the trait will unwrap the failure and wrap it in a
scala.util.Failure instance. However, it does not recognize the scala Failure when given
to the AskSupport trait. As a consequence it would wrap scala.util.Failure in a
scala.util.Success instance.
@StephanEwen
Copy link
Contributor

Good fix, +1 to merge this

The unwrapping only takes place if one asks an actor. In case of tell, the original message
will be transmitted.
@tillrohrmann
Copy link
Contributor Author

Thanks for the review @StephanEwen. Tests have passed on Travis. Merging this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants