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

fix severe error for Haitian-Creole declension #62

Merged
merged 1 commit into from
Sep 17, 2024
Merged

Conversation

yoikawa
Copy link
Contributor

@yoikawa yoikawa commented Sep 17, 2024

Fixed corner case If French noun has no singular form, Haitian-Creole derives no value and ends up returning null that may throw an exception

logger.severe("###\tError: The noun " + name + " has no value");
// this is wrong. the noun should have singular form
HumanLanguage language = this.getDeclension().getLanguage();
logger.severe(() -> "###\tError: " + language.getLocaleString() + "The noun " + name + " has no value");
Copy link
Contributor Author

Choose a reason for hiding this comment

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

show language information for SEVERE error. also, refactor using Logger#severe(Supplier<String>) to construct log message lazily.

@yoikawa yoikawa merged commit 91a742b into main Sep 17, 2024
4 checks passed
@yoikawa yoikawa deleted the fix-dictionary branch September 17, 2024 05:37
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