Skip to content
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

Make ExecuteAsync throw the original exception #686

Merged
merged 2 commits into from
Jul 30, 2014
Merged

Make ExecuteAsync throw the original exception #686

merged 2 commits into from
Jul 30, 2014

Conversation

flagbug
Copy link
Member

@flagbug flagbug commented Jul 30, 2014

This fixes #685

@@ -374,7 +374,7 @@ public IObservable<T> ExecuteAsync(object parameter = null)
.Do(x => executeResults.OnNext(x))
.Catch<T, Exception>(ex => {
exceptions.OnNext(ex);
return Observable.Empty<T>();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can nuke the Catch block here and just use the OnError clause of the Do above it

@anaisbetts
Copy link
Member

👍

@flagbug
Copy link
Member Author

flagbug commented Jul 30, 2014

@paulcbetts Fixed the catch!

anaisbetts pushed a commit that referenced this pull request Jul 30, 2014
Make ExecuteAsync throw the original exception
@anaisbetts anaisbetts merged commit 454543b into reactiveui:master Jul 30, 2014
@anaisbetts
Copy link
Member

Thanks!

@flagbug flagbug deleted the fix-reactivecommand-exceptions branch July 30, 2014 17:56
@lock lock bot locked and limited conversation to collaborators Jun 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ReactiveCommand + Exception + ExecuteAsync = InvalidOperationException
2 participants