You can setup an email step that runs if there is a failure during the deployment.
You can then include the error that occurred by including the #{Octopus.Deployment.Error} (The error causing the deployment to fail, if any) and #{Octopus.Deployment.ErrorDetail} (A detailed description of the error causing the deployment to fail).