Fix error printing: use repr.