shurcooL / home

home is Dmitri Shuralyov's personal website.
https://dmitri.shuralyov.com
MIT License
76 stars 2 forks source link

Bad error message/code for blog entries that don't exist. #3

Closed sqs closed 8 years ago

sqs commented 8 years ago

Going to the nonexistent URL https://dmitri.shuralyov.com/blog/1822 yields an HTTP 200 (should be 404) and the following non-nice error page:

template: issue.html.tmpl:13:13: executing "issue" at <.Issue>: error calling Issue: open /home/dmitri/Dropbox/Store/issues/dmitri.shuralyov.com/blog/issues/1822/0: no such file or directory
dmitshur commented 8 years ago

Thanks for reporting this Quinn! 😁

This is a known issue in issuesapp. I've been deferring resolving it because it'll no longer be an issue after I eventually change that codebase to a new architecture with better error handling. 😛

But that won't happen soon, so I'll just fix this specific case for now. Returning 404 is the right thing to do here.

Edit: This is fixed now.