Function: report-errors

report-errors is a function alias for with-demoted-errors, defined in subr.el.gz.

This macro is obsolete since 25.1; use with-demoted-errors instead.

Signature

(report-errors FORMAT &rest BODY)

Documentation

Run BODY and demote any errors to simple messages.

FORMAT is a string passed to message to format any error message. It should contain a single %-sequence; e.g., "Error: %S".

If debug-on-error is non-nil, run BODY without catching its errors. This is to be used around code that is not expected to signal an error but that should be robust in the unexpected case that an error is signaled.

Aliases

report-errors (obsolete since 25.1)