diff --git a/clients/cli/cmd/internal/pull.go b/clients/cli/cmd/internal/pull.go index b1f5a18c..9cbb36f1 100644 --- a/clients/cli/cmd/internal/pull.go +++ b/clients/cli/cmd/internal/pull.go @@ -120,6 +120,9 @@ func (target *Target) Pull(client *phrase.APIClient, branch string) error { err = target.DownloadAndWriteToFile(client, localeFile, branch) if err != nil { + if openapiError, ok := err.(phrase.GenericOpenAPIError); ok { + print.Warn("API response: %s", openapiError.Body()) + } return fmt.Errorf("%s for %s", err, localeFile.Path) } else { print.Success("Downloaded %s to %s", localeFile.Message(), localeFile.RelPath())