Process/Php7.php
[Pman.Core] / Process / Php7.php
index 712cafe..45f225d 100644 (file)
@@ -22,7 +22,7 @@ class Pman_Core_Process_Php7 extends Pman
             die("CLI only");
         }
     }
-
+    
     function get($base, $opts = array()) 
     {
         $this->scan();
@@ -49,14 +49,13 @@ class Pman_Core_Process_Php7 extends Pman
                 continue;
             }
             
+//            require_once implode('/', $route) . "/" . $d;
+            
             try {
-                include_once implode('/', $route) . "/" . $d;
-            } catch(Exception $e) {    
-              echo "Message : " . $e->getMessage() . "\n";
-              echo "Code : " . $e->getCode() . "\n";
+                require_once implode('/', $route) . "/" . $d;
+            } catch (ErrorException $ex) {
+                echo "Unable to load configuration file.";
             }
-
-            
             
         }