Modified error printing.