Postleaf / postleaf

Simple, beautiful publishing with Node.js.

Home Page:https://www.postleaf.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

callingmybluff opened this issue · comments

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

  • Postleaf version: 1.0
  • Node version: 7.10.1
  • Affected browsers: Chrome
  • Operating system: Debian 8 (host) vs. Windows (Browser)

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

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 :)