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

Show error message upon trashing failure #1857

Merged
merged 2 commits into from
Jul 13, 2017
Merged

Conversation

westonruter
Copy link
Member

Splitting out from #1816.

} else {
message = __( 'Trashing failed' );
}
dispatch( errorNotice( message ) );
Copy link
Member

Choose a reason for hiding this comment

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

Any thoughts on whether this should be part of its own effect handler? e.g.

TRASH_POST_FAILURE( action, store ) {
	store.dispatch( errorNotice( action.error.message ) );
}

@westonruter westonruter merged commit ffe4ab8 into master Jul 13, 2017
@westonruter westonruter deleted the add/trash-failure-message branch July 13, 2017 20:37
Tug pushed a commit that referenced this pull request Feb 28, 2020
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