浏览代码

[FrameworkBundle] fixed error message for template as an array

Fabien Potencier 14 年之前
父节点
当前提交
cdff8b2bf8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Symfony/Bundle/FrameworkBundle/Templating/DelegatingEngine.php

+ 1 - 1
src/Symfony/Bundle/FrameworkBundle/Templating/DelegatingEngine.php

@@ -69,7 +69,7 @@ class DelegatingEngine extends BaseDelegatingEngine implements EngineInterface
             }
         }
 
-        throw new \RuntimeException(sprintf('No engine is able to work with the "%s" template.', $name));
+        throw new \RuntimeException(sprintf('No engine is able to work with the %s template.', json_encode($name)));
     }
 
     /**