Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(CLI): Improve push error display [TSI-1736] #491

Merged
merged 3 commits into from
Dec 15, 2023

Conversation

jablan
Copy link
Collaborator

@jablan jablan commented Dec 14, 2023

Several smaller improvements on push errors:

  • Print error response from server on upload create
  • Print link to the upload upon upload processing error (the response does not contain more info)
  • Return non-zero exit code when any of the uploads were not processed successfully (Push error handling phrase-cli#135)

@@ -202,6 +209,9 @@ func (source *Source) Push(client *phrase.APIClient, waitForResults bool, branch
fmt.Fprintln(os.Stderr, strings.Repeat("-", 10))
}
}
if !noErrors {
return errors.New("not_all_files_processed")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe instead of an error code like looking message we could write a short sentence what happened?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✔️ following other cases in the codebase, I rewrote this as a (semi)sentence

@jablan jablan merged commit 555c017 into master Dec 15, 2023
10 checks passed
@jablan jablan deleted the tsi-1736-output-error-on-push branch December 15, 2023 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants