emmett-framework / emmett

The web framework for inventors
BSD 3-Clause "New" or "Revised" License
1.06k stars 71 forks source link

Changed HTTP code and message #109

Closed dokenzy closed 8 years ago

dokenzy commented 8 years ago

I think 500 is more suitable than 404 because it is server side error, and I want to see exact file name that causes the error in debug mode.

gi0baro commented 8 years ago

@dokenzy why you closed this?

dokenzy commented 8 years ago

I think my code is not good. I need it and it works well, but this kinds code makes weppy not to be clean, because there will be many return statement and each return has 'if' to check whether debug is True of False. I guess my commit was impatient. How do you think of this?

gi0baro commented 8 years ago

@dokenzy Ok, I will think about a more elegant solution. Will keep you updated.