Closed dokenzy closed 8 years ago
@dokenzy why you closed this?
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?
@dokenzy Ok, I will think about a more elegant solution. Will keep you updated.
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.