error-message-string

error-message-string is a built-in function in `C source code'.

(error-message-string OBJ)

Convert an error value (ERROR-SYMBOL . DATA) to an error message.
See Info anchor `(elisp)Definition of signal' for some details on how this
error message is constructed.