Postleaf / postleaf

Simple, beautiful publishing with Node.js.
https://www.postleaf.org/
MIT License
505 stars 203 forks source link

When editing an existing post, errors in the slug do not appear but you get "can not save the changes now" #92

Open callingmybluff opened 6 years ago

callingmybluff commented 6 years ago

Summary

So when you are making changes to an existing draft, mistakes in the "slug" prevent saving he changes, and the user get a vague message.

Steps to Reproduce

  1. Make a draft, and set a slug to it.
  2. Save the changes.
  3. Change the "slug" to something invalid, like: "2018" (not allowed as it starts with a number).
  4. Try saving the changes
  5. You will get "Your changes could not be saved at this time" instead of the more specific: "Slug must start with a letter ... etc".

Additional info


Note: This issue tracker is ONLY for bug reports and feature requests. If this is a personal support issue, please visit postleaf.org/support.

claviska commented 6 years ago

Confirmed. It looks like we're not handling the validation error from the post model.

I'll leave this open until I can get to it, or feel free to submit a PR instead :)