Better error pages displaying exception in debug mode