Permalink
Browse files

[Locale] Updated exception messages

  • Loading branch information...
1 parent e6350bd commit ea4691b35ca23e611cec38c01f414cea3920f023 @hason hason committed May 10, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 Locale.php
View
@@ -46,7 +46,7 @@ static public function getDisplayCountries($locale)
$bundle = \ResourceBundle::create($locale, __DIR__.'/Resources/data/region');
if (null === $bundle) {
- throw new \RuntimeException('The country resource bundle could not be loaded');
+ throw new \RuntimeException(sprintf('The country resource bundle could not be loaded for locale "%s"', $locale));
}
$collator = new \Collator($locale);
@@ -101,7 +101,7 @@ static public function getDisplayLanguages($locale)
$bundle = \ResourceBundle::create($locale, __DIR__.'/Resources/data/lang');
if (null === $bundle) {
- throw new \RuntimeException('The language resource bundle could not be loaded');
+ throw new \RuntimeException(sprintf('The language resource bundle could not be loaded for locale "%s"', $locale));
}
$collator = new \Collator($locale);
@@ -152,7 +152,7 @@ static public function getDisplayLocales($locale)
$bundle = \ResourceBundle::create($locale, __DIR__.'/Resources/data/names');
if (null === $bundle) {
- throw new \RuntimeException('The locale resource bundle could not be loaded');
+ throw new \RuntimeException(sprintf('The locale resource bundle could not be loaded for locale "%s"', $locale));
}
$collator = new \Collator($locale);

0 comments on commit ea4691b

Please sign in to comment.