Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions cmd/src/actions_exec_logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,14 @@ func (a *actionLogger) ActionFailed(err error, patches []CampaignPlanPatch) {
} else {
yellow.Fprintf(os.Stderr, "✗ Action failed with %d errors.\n", len(perr))
}
} else {
} else if err != nil {
if len(patches) > 0 {
yellow.Fprintf(os.Stderr, "✗ Action produced %d patches but failed with error: %s\n\n", len(patches), err)
} else {
yellow.Fprintf(os.Stderr, "✗ Action failed with error: %s\n\n", err)
}
} else {
grey.Fprintf(os.Stderr, "✗ Action did not produce any patches.\n\n")
}
}

Expand Down Expand Up @@ -106,7 +108,7 @@ func (a *actionLogger) RepoCacheHit(repo ActionRepo, patchProduced bool) {
return
}

fmt.Fprintf(os.Stderr, "%s -> Cached result found: no diff produced for this repository.\n", green.Sprint(repo.Name))
fmt.Fprintf(os.Stderr, "%s -> Cached result found: no diff produced for this repository.\n", grey.Sprint(repo.Name))
}
}

Expand Down