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

Add error handling for stream iterators #5

Merged
merged 3 commits into from
Nov 21, 2022

Conversation

yaacovCR
Copy link

This diff looks smaller when ignoring white space :)

@yaacovCR yaacovCR force-pushed the stream-errors branch 2 times, most recently from afa63e7 to 18b5bf5 Compare November 18, 2022 09:22
- Add an entry to {payload} named `items` with the value {null}.
- Add an entry to {payload} named `errors` with the value {errors}.
Copy link
Owner

Choose a reason for hiding this comment

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

Can we move these two lines down so it's not repeated in both conditions?

Copy link
Author

Choose a reason for hiding this comment

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

Hmm, lower down, we have conditions on adding those entries, but when the iterator errors, we don't have conditions. There may be a way to consolidate that I haven't thought of, though.

Copy link
Owner

Choose a reason for hiding this comment

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

Can we delete this line and move this

    - If {errors} is not empty:
      - Add an entry to {payload} named `errors` with the value {errors}.

to outside of the Otherwise: block?

@robrichard robrichard merged commit 2fbb851 into robrichard:incremental Nov 21, 2022
@yaacovCR yaacovCR deleted the stream-errors branch November 27, 2022 10:42
robrichard pushed a commit that referenced this pull request Jan 15, 2023
* Add error handling for stream iterators

* also add iterator error handling within CompleteValue

* incorporate feedback
robrichard pushed a commit that referenced this pull request Aug 31, 2023
* Add error handling for stream iterators

* also add iterator error handling within CompleteValue

* incorporate feedback
robrichard added a commit that referenced this pull request Sep 18, 2024
* Add defer and stream directives to type system

* Add defer/stream validation rules
robrichard added a commit that referenced this pull request Nov 1, 2024
* Add defer and stream directives to type system

* Add defer/stream validation rules
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants