Skip to content

Commit

Permalink
bugfix: dedup pint apply/destroy dag node executing error (#342)
Browse files Browse the repository at this point in the history
  • Loading branch information
howieyuen committed May 11, 2023
1 parent 621db5f commit 074a213
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/cmd/apply/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ func Apply(
pterm.Bold.Sprint(changeStep.ID),
strings.ToLower(string(msg.OpResult)),
)
pterm.Error.WithWriter(out).Printf("%s, %v\n", title, msg.OpErr)
pterm.Error.WithWriter(out).Printf("%s\n", title)
default:
title := fmt.Sprintf("%s %s %s",
changeStep.Action.Ing(),
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/destroy/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ func (o *DestroyOptions) destroy(planResources *models.Spec, changes *opsmodels.
pterm.Bold.Sprint(changeStep.ID),
strings.ToLower(string(msg.OpResult)),
)
pterm.Error.Printf("%s, %v\n", title, msg.OpErr)
pterm.Error.Printf("%s\n", title)
default:
title := fmt.Sprintf("%s %s %s",
changeStep.Action.Ing(),
Expand Down
2 changes: 1 addition & 1 deletion pkg/status/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func (b *BaseStatus) Message() string {
}

func (b *BaseStatus) String() string {
return fmt.Sprintf("Kind:%s\nCode:%s\nMessage:%s", b.kind, b.code, b.message)
return fmt.Sprintf("Kind: %s, Code: %s, Message: %s", b.kind, b.code, b.message)
}

func IsErr(s Status) bool {
Expand Down

0 comments on commit 074a213

Please sign in to comment.