浏览代码

[Routing] tweaked error messages

Fabien Potencier 14 年之前
父节点
当前提交
be95bff7ca
共有 1 个文件被更改,包括 1 次插入1 次删除
  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 = '';