Add send error message, test log error in DB