Skip to content
This repository has been archived by the owner on Nov 8, 2017. It is now read-only.

executor: Improve error handling #1

Merged
merged 2 commits into from
Oct 13, 2016
Merged

executor: Improve error handling #1

merged 2 commits into from
Oct 13, 2016

Conversation

jvatic
Copy link
Collaborator

@jvatic jvatic commented Oct 11, 2016

  • Don't use panic/recover to propagate errors
  • Return immediately when an error occurs
  • Execute request fields in deterministic order

\cc @titanous

@jvatic jvatic force-pushed the better-error-handling branch 2 times, most recently from a190581 to 66ec6ba Compare October 11, 2016 20:53
Copy link
Collaborator Author

@jvatic jvatic left a comment

Choose a reason for hiding this comment

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

This needs some more work to get tests passing.

- Don't use panic/recover to propagate errors
- Return immediately when an error occurs
- Execute request fields in deterministic order

Signed-off-by: Jesse Stuart <[email protected]>
@jvatic jvatic force-pushed the better-error-handling branch from 66ec6ba to 137ddfa Compare October 12, 2016 20:08
@jvatic jvatic changed the title executor: Don't use panic/recover to pass errors around executor: Improve error handling Oct 12, 2016
Copy link
Collaborator Author

@jvatic jvatic left a comment

Choose a reason for hiding this comment

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

Tests are now passing.

The main behaviour change is errors are returned immediately without response data (the spec allows either).

@jvatic jvatic merged commit 2a9f177 into master Oct 13, 2016
@jvatic jvatic deleted the better-error-handling branch October 13, 2016 16:50
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.

2 participants