Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mandelsoft committed Jun 16, 2024
1 parent 1469257 commit 989a6c1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmds/ocm/commands/ocmcmds/components/transfer/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,11 @@ func (a *action) Close() error {
func (a *action) Out() error {
a.printer.Printf("%d versions transferred\n", len(a.closure))
if a.errors.Result() != nil {
return fmt.Errorf("transfer finished with %d error(s)", a.errors.Len())
sum := "Error summary:"
for _, e := range a.errors.Entries() {
sum = fmt.Sprintf("%s\n- %s", sum, e)
}
return fmt.Errorf("transfer finished with %d error(s)\n%s\n", a.errors.Len(), sum)
}

if a.cmd.BOMFile != "" {
Expand Down

0 comments on commit 989a6c1

Please sign in to comment.