Getting sensible error messages to print