diff --git a/src/Symfony/Component/Translation/Loader/ResourceBundleLoader.php b/src/Symfony/Component/Translation/Loader/ResourceBundleLoader.php index b68aeb52cb..65d7dfb14e 100644 --- a/src/Symfony/Component/Translation/Loader/ResourceBundleLoader.php +++ b/src/Symfony/Component/Translation/Loader/ResourceBundleLoader.php @@ -30,7 +30,7 @@ class ResourceBundleLoader implements LoaderInterface $rb = new \ResourceBundle($locale, $resource); if (!$rb) { - throw new \RuntimeException("cannot load this resource : $rb"); + throw new \RuntimeException("cannot load this resource : $resource"); } elseif (intl_is_failure($rb->getErrorCode())) { throw new \RuntimeException($rb->getErrorMessage(), $rb->getErrorCode()); }