add \n to error messages only when output goes to stderr