From 2f0976f4889bfd9c6642c1fc68ff0c6d571a9bbb Mon Sep 17 00:00:00 2001 From: David Ferlay Date: Fri, 22 Nov 2024 15:21:55 +0100 Subject: [PATCH] Changing message 'no resource to update' from error to info --- actionBump.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/actionBump.go b/actionBump.go index 59f36c4..49e3521 100644 --- a/actionBump.go +++ b/actionBump.go @@ -1,7 +1,6 @@ package plasmactlbump import ( - "errors" "fmt" "path/filepath" @@ -53,7 +52,7 @@ func printMemo() { } func (k *bumpService) Bump(last bool) error { - launchr.Term().Println("Bump updated versions...") + launchr.Term().Info().Println("Bumping updated resources...") printMemo() bumper, err := repository.NewBumper() @@ -62,7 +61,7 @@ func (k *bumpService) Bump(last bool) error { } if bumper.IsOwnCommit() { - launchr.Term().Warning().Println("skipping bump, as the latest commit is already by the bumper tool") + launchr.Term().Info().Println("skipping bump, as the latest commit is already by the bumper tool") return nil } @@ -73,7 +72,8 @@ func (k *bumpService) Bump(last bool) error { resources := k.collectResources(files) if len(resources) == 0 { - return errors.New("no resources to update") + launchr.Term().Info().Println("No resource to update") + return nil } version, err := bumper.GetLastCommitShortHash()