merged branch gimler/patch-3 (PR #5256)

Commits
-------

a7b4573 add format to exception message

Discussion
----------

add format to exception message
This commit is contained in:
Fabien Potencier 2012-08-15 19:22:38 +02:00
commit d4d368f970
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ class TranslationWriter
public function writeTranslations(MessageCatalogue $catalogue, $format, $options = array())
{
if (!isset($this->dumpers[$format])) {
throw new \InvalidArgumentException('There is no dumper associated with this format.');
throw new \InvalidArgumentException(sprintf('There is no dumper associated with format "%s".', $format));
}
// get the right dumper