Skip to content

Commit b5cee46

Browse files
committed
FIX (STRINGS-564) - Error-code when pulling a non-existing branch
1 parent 05e5ced commit b5cee46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clients/cli/cmd/internal/pull.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ func (cmd *PullCommand) Run(config *phrase.Config) error {
7171
val, ok := localesCache[LocalesCacheKey{target.ProjectID, target.GetBranch()}]
7272
if !ok || len(val) == 0 {
7373
if cmd.Branch != "" {
74-
continue
74+
return fmt.Errorf("Branch '%s' does not exist in project '%s'", cmd.Branch, target.ProjectID)
7575
}
7676
return fmt.Errorf("Could not find any locales for project %q", target.ProjectID)
7777
}

0 commit comments

Comments
 (0)