better formatting for error printouts