[pretty] improve error messages