clarify fix error message

Signed-off-by: Scott Rigby <scott@r6by.com>
pull/30570/head
Scott Rigby 7 months ago
parent 2f79afb0a3
commit 97b0e11871
No known key found for this signature in database
GPG Key ID: C7C6FBB5B91C1155

@ -104,7 +104,7 @@ func (cfg *Configuration) execHook(rl *release.Release, hook release.HookEvent,
// under failed condition. If so, then clear the corresponding resource object in the hook // under failed condition. If so, then clear the corresponding resource object in the hook
if errDeleting := cfg.deleteHookByPolicy(h, release.HookFailed, timeout); errDeleting != nil { if errDeleting := cfg.deleteHookByPolicy(h, release.HookFailed, timeout); errDeleting != nil {
// We log the error here as we want to propagate the hook failure upwards to the release object. // We log the error here as we want to propagate the hook failure upwards to the release object.
log.Printf("error the hook resource on hook failure: %v", errDeleting) log.Printf("error deleting the hook resource on hook failure: %v", errDeleting)
} }
return err return err
} }

Loading…
Cancel
Save