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

[localization] catch localized string format errors #519

Merged
merged 1 commit into from
Apr 22, 2022

Conversation

strega-nil-ms
Copy link
Contributor

No description provided.

@strega-nil-ms strega-nil-ms force-pushed the localization-try-catch branch from b42d293 to f177431 Compare April 22, 2022 18:53
catch (...)
{
::fprintf(stderr,
"INTERNAL ERROR: failed to format default format string for index %zu\nformat string: %.*s\n",
Copy link
Member

Choose a reason for hiding this comment

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

Should we format this with fmt? XD

Copy link
Contributor Author

@strega-nil-ms strega-nil-ms Apr 22, 2022

Choose a reason for hiding this comment

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

I don't think so, since this is the "OH FUCK" case

@strega-nil-ms strega-nil-ms merged commit b78e536 into microsoft:main Apr 22, 2022
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.

4 participants