Clean up error printing.