-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ask<object> will not throw exception when the response is Status.Failure #7254
Comments
This behaviour can be fixed by reordering the case labels, e.g.:
|
Nice catch! Yes, we should apply your fix and just re-do the case labels here. If you'd like to send in a small PR with a reproduction spec we'd be happy to merge it. We can write something ourselves too - but totally up to you. |
I am afraid I won't be able to write a PR with tests soon, I am really busy at work, sorry. Thanks for accepting the bug report tho, fixing it will allow us to simplify our company code. |
Version Information
Version of Akka.NET? 1.5.15
Describe the bug
Ask will not throw exception when the response is Status.Failure
This is caused by the order of case statements in
FutureActorRef<T>.TellInternal
:when T is object and message is Status.Failure the
case T t:
is executed instead ofcase Status.Failure f:
.The text was updated successfully, but these errors were encountered: