semantic-safe

semantic-safe is a Lisp macro in `fw.el'.

(semantic-safe FORMAT &rest BODY)

Turn into a FORMAT message any error caught during eval of BODY.
Return the value of last BODY form or nil if an error occurred.
FORMAT can have a %s escape which will be replaced with the actual
error message.
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.