Printing errors carefully