Cleans up error printing.