diff --git a/src/PugHandlerTrait.php b/src/PugHandlerTrait.php
index <HASH>..<HASH> 100644
--- a/src/PugHandlerTrait.php
+++ b/src/PugHandlerTrait.php
@@ -235,7 +235,7 @@ trait PugHandlerTrait
                     serialize($importCarrier->getCurrentImportPaths())
                 );
 
-                if ($pug->getOption('debug')) {
+                if ($pug->getOption('debug') && class_exists('Facade\\Ignition\\Exceptions\\ViewException')) {
                     $contents = "<?php try { ?>$contents<?php } " .
                         "catch (\Throwable \$exception) { throw new \Bkwld\LaravelPug\PugException(\$this, \$exception); }";
                 }
Fix #<I> Throw PugException only if facade/ignition is installed
Fix Laravel < 6 errors display compatibility