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:
commit
d4d368f970
@ -59,7 +59,7 @@ class TranslationWriter
|
|||||||
public function writeTranslations(MessageCatalogue $catalogue, $format, $options = array())
|
public function writeTranslations(MessageCatalogue $catalogue, $format, $options = array())
|
||||||
{
|
{
|
||||||
if (!isset($this->dumpers[$format])) {
|
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
|
// get the right dumper
|
||||||
|
Reference in New Issue
Block a user