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

Check that exports succeeded #221

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

KeunwooLee-at
Copy link

The exports->Set call here returns a Maybe<bool> indicating whether it succeeded. Before this change, we ignored this result. This effectively never fails, but the unused result triggers a warning in some compilers.

This change adds a Check() to this site to assert that the export succeeded. Note that this crashes the process on failure, but as noted this failure shouldn't happen, and it's unlikely that clients can usefully recover in any case.

The `exports->Set` call here returns a `Maybe<bool>` indicating
whether it succeeded.  Before this change, we ignored this result.
This effectively never fails, but the unused result triggers a warning
in some compilers.

This change adds a Check() to this site to assert that the export
succeeded.  Note that this crashes the process on failure, but as
noted this failure shouldn't happen, and it's unlikely that clients
can usefully recover in any case.
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.

1 participant