From 859dd670e417415035380c3e3184b6f0d4fcc026 Mon Sep 17 00:00:00 2001 From: Bazyli Cyran Date: Tue, 28 Mar 2023 19:10:12 +0200 Subject: [PATCH] fix: Add missing colon in commit action error messages --- bumper/commit.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bumper/commit.go b/bumper/commit.go index ced075d..f5e705b 100644 --- a/bumper/commit.go +++ b/bumper/commit.go @@ -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 { @@ -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 }