pub fn take_last_error() -> Option<String>
Take (and clear) the message of the most recent rejected action. Global to the process, not per workbook. Prefer ActionEffect::error_message, which carries the same text.
ActionEffect::error_message