src/Viserio/Provider/Twig/Loader.php
public function getSourceContext($name)
    {
        $template = $this->findTemplate($name);

        try {
            $source = $this->files->read($template);
        } catch (FileNotFoundException $exception) {
            throw new LoaderError(\sprintf('Twig file [%s] was not found.', $exception->getMessage()));
        }

        if ($source === false) {
            throw new LoaderError(\sprintf('A error occurred during template [%s] reading', $name));
        }

        return new Source($source, $name, $template);
    }
public function getSourceContext($name)
    {
        $template = $this->findTemplate($name);

        try {
            $source = $this->files->read($template);
        } catch (FileNotFoundException $exception) {
            throw new LoaderError(\sprintf('Twig file [%s] was not found.', $exception->getMessage()));
        }

        if ($source === false) {
            throw new LoaderError(\sprintf('A error occurred during template [%s] reading', $name));
        }

        return new Source($source, $name, $template);
    }
{@inheritdoc}