Improved error message format