merged branch Nanocom/twigbundle_fix_error_message (PR #4818)

Commits
-------

dc4d343 [TwigBundle] Fixed error message

Discussion
----------

[TwigBundle] Fixed error message

Small fix to display the filename that cannot be read in the Twig Lint command.
This commit is contained in:
Fabien Potencier 2012-07-10 07:46:57 +02:00
commit 5345b59dd8
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ EOF
}
if (0 !== strpos($filename, '@') && !is_readable($filename)) {
throw new \RuntimeException("File or directory '%s' is not readable");
throw new \RuntimeException(sprintf('File or directory "%s" is not readable', $filename));
}
$files = array();