Explorar o código

[Routing] tweaked error messages

Fabien Potencier %!s(int64=14) %!d(string=hai) anos
pai
achega
be95bff7ca
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Symfony/Component/Routing/Generator/UrlGenerator.php

+ 1 - 1
src/Symfony/Component/Routing/Generator/UrlGenerator.php

@@ -101,7 +101,7 @@ class UrlGenerator implements UrlGeneratorInterface
 
         // all params must be given
         if ($diff = array_diff_key($variables, $tparams)) {
-            throw new MissingMandatoryParametersException(sprintf('The "%s" route has some missing mandatory parameters (%s).', $name, implode(', ', array_keys($diff))));
+            throw new MissingMandatoryParametersException(sprintf('The "%s" route has some missing mandatory parameters ("%s").', $name, implode('", "', array_keys($diff))));
         }
 
         $url = '';