From b5cee463d4ffd9d23932f1b6411998f019bc91fb Mon Sep 17 00:00:00 2001 From: Michael Blum Date: Wed, 15 Jan 2025 08:31:18 +0100 Subject: [PATCH] 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) }