better warning message formatting