some error message formatting