append error message only once