Skip to content

Commit

Permalink
chore: add missing default bundle to log message
Browse files Browse the repository at this point in the history
  • Loading branch information
ugur-vaadin committed Feb 21, 2024
1 parent 5cf1409 commit 6637608
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,12 @@ private ResourceBundle getTranslationPropertyFile(Locale locale) {
return ResourceBundle.getBundle(DefaultI18NProvider.BUNDLE_PREFIX,
locale, I18NUtil.getClassLoader());
} catch (MissingResourceException e) {
getLogger().warn("Missing resource bundle for "
+ DefaultI18NProvider.BUNDLE_PREFIX + " and locale "
+ locale.getDisplayName(), e);
getLogger().warn(
"Missing resource bundle for "
+ DefaultI18NProvider.BUNDLE_PREFIX + " and locale "
+ locale.getDisplayName()
+ ". There is no default bundle to fall back on.",
e);
return null;
}
}
Expand Down

0 comments on commit 6637608

Please sign in to comment.