make error message output consistent