log log failure

This commit is contained in:
Shreyas Goenka 2023-03-09 01:48:34 +01:00
parent 8504e47917
commit a22ee2e1e6
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
1 changed files with 4 additions and 1 deletions

View File

@ -205,7 +205,10 @@ func (r *pipelineRunner) Run(ctx context.Context, opts *Options) error {
}
if state == pipelines.UpdateInfoStateFailed {
log.Printf("%s Update has failed!", prefix)
r.logErrorEvent(ctx, pipelineID, updateID)
err := r.logErrorEvent(ctx, pipelineID, updateID)
if err != nil {
return err
}
return fmt.Errorf("update failed")
}
if state == pipelines.UpdateInfoStateCompleted {