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:
commit
5345b59dd8
|
@ -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();
|
||||
|
|
Reference in New Issue