brandonbloch / posm

POSM: PHP-Only Site Management — Simple templating, file-based CMS, visual editor
GNU General Public License v2.0
3 stars 0 forks source link

Use a set of more informative error messages #3

Open brandonbloch opened 9 years ago

brandonbloch commented 9 years ago

posm_content handles a lot of errors by simply outputting a one-line message in italics.

Some nicer formatted text may be in order, one day. Very low priority.

brandonbloch commented 9 years ago

Idea: can the page still somehow be set to 404 at this point? I don't think the headers can be changed anymore at this point in execution though. But maybe there should be a similar function in auth.php that checks the existence/status of a file, and sets the HTTP headers while still possible?

brandonbloch commented 9 years ago

See #10 for a great example of why this is relevant