... | ... |
@@ -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 |
} |