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

translate: handle failure/error better in .mangle #2160

Merged
merged 1 commit into from
Aug 6, 2021
Merged

Conversation

dgw
Copy link
Member

@dgw dgw commented Jul 14, 2021

Description

Should resolve #2021 by outputting a friendly error instead of what has become an "Unexpected error" involving concatenating NoneType to str thanks to the output-prefix consistency pass we did in 7.1.

Checklist

  • I have read CONTRIBUTING.md
  • I can and do license this contribution under the EFLv2
  • No issues are reported by make qa (runs make quality and make test)
  • I have tested the functionality of the things this change touches

Notes

The logic in this plugin could do with a refactor, especially making translate() raise an exception instead of returning garbage. But I'm not up for that tonight, and it wouldn't be appropriate to do that for a 7.1.x bugfix release anyway.

@dgw dgw added the Bugfix Generally, PRs that reference (and fix) one or more issue(s) label Jul 14, 2021
@dgw dgw added this to the 7.1.3 milestone Jul 14, 2021
@dgw dgw requested a review from a team July 14, 2021 05:56
Copy link
Contributor

@Exirel Exirel left a comment

Choose a reason for hiding this comment

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

Smart.

@dgw dgw merged commit 3d07382 into master Aug 6, 2021
@dgw dgw deleted the translate-mangle-None branch August 6, 2021 07:21
dgw added a commit that referenced this pull request Aug 6, 2021
translate: handle failure/error better in `.mangle`

Cherry-picked from master: 3d07382
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bugfix Generally, PRs that reference (and fix) one or more issue(s)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

translate: mangle is a bit useless due to rate limit
2 participants