Improved error message displaying.