improved error message formatting.