From b5cee463d4ffd9d23932f1b6411998f019bc91fb Mon Sep 17 00:00:00 2001 From: Michael Blum Date: Wed, 15 Jan 2025 08:31:18 +0100 Subject: [PATCH 1/2] FIX (STRINGS-564) - Error-code when pulling a non-existing branch --- clients/cli/cmd/internal/pull.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/cli/cmd/internal/pull.go b/clients/cli/cmd/internal/pull.go index 74e73188..a7e10ed3 100644 --- a/clients/cli/cmd/internal/pull.go +++ b/clients/cli/cmd/internal/pull.go @@ -71,7 +71,7 @@ func (cmd *PullCommand) Run(config *phrase.Config) error { val, ok := localesCache[LocalesCacheKey{target.ProjectID, target.GetBranch()}] if !ok || len(val) == 0 { if cmd.Branch != "" { - continue + return fmt.Errorf("Branch '%s' does not exist in project '%s'", cmd.Branch, target.ProjectID) } return fmt.Errorf("Could not find any locales for project %q", target.ProjectID) } From 3a4bcbf473cce7b7518c149fc8c211577b2bd3b2 Mon Sep 17 00:00:00 2001 From: Michael Blum Date: Wed, 15 Jan 2025 10:11:59 +0100 Subject: [PATCH 2/2] Bump Version --- clients/cli/go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/cli/go.mod b/clients/cli/go.mod index 405aa8b7..6cc5947e 100644 --- a/clients/cli/go.mod +++ b/clients/cli/go.mod @@ -11,7 +11,7 @@ require ( github.com/daviddengcn/go-colortext v1.0.0 github.com/jpillora/backoff v1.0.0 github.com/mitchellh/mapstructure v1.5.0 - github.com/phrase/phrase-go/v4 v4.0.5 // x-release-please-version + github.com/phrase/phrase-go/v4 v4.1.0 // x-release-please-version github.com/spf13/cobra v1.8.1 github.com/spf13/viper v1.19.0 gopkg.in/yaml.v2 v2.4.0