Skip to content

Commit

Permalink
FIX (STRINGS-564) - Error-code when pulling a non-existing branch
Browse files Browse the repository at this point in the history
  • Loading branch information
BlumMichael committed Jan 15, 2025
1 parent 05e5ced commit b5cee46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clients/cli/cmd/internal/pull.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit b5cee46

Please sign in to comment.