Improve error messages from Event Processor

This rewords and reformats a confusing error message.

Change-Id: I02575f8c843361a9ed10feb6d13219ffd310ed34
This commit is contained in:
Ian Howell 2020-10-26 13:07:55 -05:00
parent cd1ca0b787
commit ed7981db4f

View File

@ -72,7 +72,7 @@ func (p *DefaultProcessor) Process(ch <-chan Event) error {
func (p *DefaultProcessor) processApplierEvent(e applyevent.Event) {
if e.Type == applyevent.ErrorType {
log.Printf("Received error when applying errors to kubernetes %v", e.ErrorEvent.Err)
log.Printf("Received error when applying resources to kubernetes: %v", e.ErrorEvent.Err)
p.errors = append(p.errors, e.ErrorEvent.Err)
// Don't write errors events to applier channel, as it will use os.Exit to stop program execution
return