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 onError parameter to perform helper #443

Merged
merged 2 commits into from
Oct 15, 2021

Conversation

maxfierke
Copy link
Collaborator

Allows setting to reporting function for reporting to error handlers, etc. Also allows setting to null to swallow all errors. This is useful when using the (perform) helper with tasks that are always having their error states handled in the UI. In these cases, errors being raised either may be surfaced in the UI and the render errors will be extraneous or there's a desire to log directly to an error reporting service.

Fixes #435

Allows setting to reporting function for reporting to error handlers, etc.
Also allows setting to null to swallow all errors
@maxfierke maxfierke force-pushed the mf-throw_on_error_perform_helper branch from f8e908a to e8f634b Compare September 19, 2021 02:27
@maxfierke maxfierke added this to the 2.2.0 milestone Oct 15, 2021
@maxfierke maxfierke merged commit 668f042 into master Oct 15, 2021
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.

The perform helper crashes QUnit tests when the task fails or is cancelled
1 participant