final adjustments to error message output.