Improved error display and logger