improve display of errors/warnings