Browse code

View fix

RafaƂ Szklarczyk authored on 12/06/2019 12:28:27
Showing 1 changed files
... ...
@@ -66,7 +66,13 @@ class View{
66 66
             $this->viewFileExtension = ".".pathinfo($this->viewFile, PATHINFO_EXTENSION);
67 67
         }
68 68
         else{
69
-            throw new \Exception("View file:\"$view\" not found!");
69
+            if(is_object($view)){
70
+                $string_view = 'matched for class: '.get_class($view);
71
+            }
72
+            else{
73
+                $string_view = $view;
74
+            }
75
+            throw new \Exception("View file:\"$string_view\" not found!");
70 76
         }
71 77
         $this->context = $context;
72 78
     }