|
@@ -60,7 +60,7 @@ class TemplateLocator implements FileLocatorInterface
|
|
|
try {
|
|
|
return $this->cache[$key] = $this->locator->locate($template->getPath(), $this->path);
|
|
|
} catch (\InvalidArgumentException $e) {
|
|
|
- throw new \InvalidArgumentException(sprintf('Unable to find template "%s" in "%s".', json_encode($template), $this->path), 0, $e);
|
|
|
+ throw new \InvalidArgumentException(sprintf('Unable to find template "%s" in "%s".', $template->getPath(), $this->path), 0, $e);
|
|
|
}
|
|
|
}
|
|
|
}
|