kabukky / journey

A blog engine written in Go, compatible with Ghost themes.
https://kabukky.github.io/journey
MIT License
1.99k stars 203 forks source link

Change "sql: no rows in result set" #81

Open farazfazli opened 8 years ago

farazfazli commented 8 years ago

I propose changing "sql: no rows in result set" for yet to be created pages to something more understandable by the average user, such as "Page not found, add a custom slug to create it!"

tomkwok commented 8 years ago

This issue is already listed in #31: use error.hbs in theme when 500 / 404 / etc. is returned (no more sql: no rows in result set and HTTP 500 response). And I also propose changing HTTP response code from 500 to 404. "Page not found" isn't an "internal server error" anyway.