report-errors

report-errors is a Lisp macro in `files.el'.

(report-errors FORMAT &rest BODY)

Eval BODY and turn any error into a FORMAT message.
FORMAT can have a %s escape which will be replaced with the actual error.
If `debug-on-error' is set, errors are not caught, so that you can
debug them.
Avoid using a large BODY since it is duplicated.