Skip to content

Commit

Permalink
Changing message 'no resource to update' from error to info
Browse files Browse the repository at this point in the history
  • Loading branch information
davidferlay committed Nov 22, 2024
1 parent d268e01 commit 2f0976f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions actionBump.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package plasmactlbump

import (
"errors"
"fmt"
"path/filepath"

Expand Down Expand Up @@ -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()
Expand All @@ -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
}

Expand All @@ -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()
Expand Down

0 comments on commit 2f0976f

Please sign in to comment.