Skip to content

Commit

Permalink
Merge pull request #201 from transifex/devel
Browse files Browse the repository at this point in the history
Release Poling translations infinite loop fix
  • Loading branch information
foteinigk authored Jul 31, 2023
2 parents d19e87b + ee2462a commit 2221ffc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/txapi/resource_translations_async_downloads.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ func PollTranslationDownload(download *jsonapi.Resource, filePath string) error
}
if download.Redirect != "" {
break
} else if download.Attributes["status"] == "failed" {
return fmt.Errorf(
"download of translation '%s' failed",
download.Relationships["resource"].DataSingular.Id,
)
}
}
resp, err := http.Get(download.Redirect)
Expand Down

0 comments on commit 2221ffc

Please sign in to comment.