Function: report-errors
report-errors is a 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.
For backward compatibility, if FORMAT is not a constant string, it is assumed to be part of BODY, in which case the message format used is "Error: %S".
Aliases
report-errors (obsolete since 25.1)