Skip to content

Commit

Permalink
fix: Add missing colon in commit action error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
bcyran committed Mar 28, 2023
1 parent cc42fcb commit 859dd67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bumper/commit.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func (action *CommitAction) Execute(pkg *pack.Package) ActionResult {
isChanged, err := action.isChanged(pkg)
if err != nil {
actionResult.Status = ActionFailedStatus
actionResult.Error = fmt.Errorf("%w %w", ErrCommitAction, err)
actionResult.Error = fmt.Errorf("%w: %w", ErrCommitAction, err)
return actionResult
}
if !isChanged {
Expand All @@ -56,7 +56,7 @@ func (action *CommitAction) Execute(pkg *pack.Package) ActionResult {

if err := action.commit(pkg); err != nil {
actionResult.Status = ActionFailedStatus
actionResult.Error = fmt.Errorf("%w %w", ErrCommitAction, err)
actionResult.Error = fmt.Errorf("%w: %w", ErrCommitAction, err)
return actionResult
}

Expand Down

0 comments on commit 859dd67

Please sign in to comment.