add information of errors in email