Function: thread-last-error
thread-last-error is a function defined in thread.c.
Signature
(thread-last-error &optional CLEANUP)
Documentation
Return the last error form recorded by a dying thread.
If CLEANUP is non-nil, remove this error form from history.
Source Code
// Defined in /usr/src/emacs/src/thread.c
{
Lisp_Object result = last_thread_error;
if (!NILP (cleanup))
last_thread_error = Qnil;
return result;
}