Skip to content

Commit e8e6ee2

Browse files
committed
Don't output errors
1 parent 5f750ad commit e8e6ee2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/KernelFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ final class KernelFactory
2929
public static function createKernel(BuildConfig $buildConfig, ?UrlChecker $urlChecker = null): Kernel
3030
{
3131
$configuration = new RSTParserConfiguration();
32+
// needed to avoid outputting parser errors on the console output or the webpage contents
33+
$configuration->silentOnError(true);
3234
$configuration->setCustomTemplateDirs([__DIR__.'/Templates']);
3335
$configuration->setTheme($buildConfig->getTheme());
3436
$configuration->setCacheDir(sprintf('%s/var/cache', $buildConfig->getCacheDir()));

0 commit comments

Comments
 (0)