Improve error displaying, and move error display logic into the error module.
3 files changed