Skip to content

Render donation goal related errors properly - #814

Merged
joshsmith merged 1 commit into
developfrom
813-render-form-errors-on-donation-goals
Nov 30, 2016
Merged

Render donation goal related errors properly#814
joshsmith merged 1 commit into
developfrom
813-render-form-errors-on-donation-goals

Conversation

@begedin

@begedin begedin commented Nov 30, 2016

Copy link
Copy Markdown
Contributor

What's in this PR?

Adds field-based validation error rendering for the donation goals page.

Also adds displaying of other generic server-side errors as a friendly error message.

I also realised our isValidationError helper on the project.donate page was wrong in assuming our server payload would contain a title set to VALIDATION_ERROR. Instead, it is now checking if any of the errors in the payload contains a source property.

The helper has also been moved into a separate module, since it's now also being used on the project.donations page.

References

Fixes #813

@begedin begedin added this to the Improve Donations milestone Nov 30, 2016
@joshsmith

Copy link
Copy Markdown
Contributor

🙌 LGTM

@joshsmith
joshsmith merged commit e3290d8 into develop Nov 30, 2016
@joshsmith
joshsmith deleted the 813-render-form-errors-on-donation-goals branch November 30, 2016 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants