Sending error details in MFT event

I am using “Send Email” action for error handling in my active transfer events.
How can I get error details in sendEmail action in any MFT event. .
Below variable is not displaying error details in email.
%the_file_error%

Is there any other variable which can get error details?