Skip to content

Commit

Permalink
Better exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
mnapoli committed May 26, 2014
1 parent 47011a3 commit d8ebe45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -20,7 +20,7 @@ public function load(array $configs, ContainerBuilder $container)
$loader->load('services.xml');

if (!isset($config['default_locale'])) {
throw new \InvalidArgumentException('The "default_locale" option must be set');
throw new \InvalidArgumentException('The "translated.default_locale" configuration option must be defined');
}

$container->setParameter('translated.default_locale', $config['default_locale']);
Expand Down
2 changes: 1 addition & 1 deletion tests/Integration/Symfony2/Symfony2Test.php
Expand Up @@ -69,7 +69,7 @@ public function testTwigExtension()

/**
* @expectedException \InvalidArgumentException
* @expectedExceptionMessage The "default_locale" option must be set
* @expectedExceptionMessage The "translated.default_locale" configuration option must be defined
*/
public function testMandatoryDefaultLocale()
{
Expand Down

0 comments on commit d8ebe45

Please sign in to comment.