diff --git a/src/Content.php b/src/Content.php index e411188..66c1297 100644 --- a/src/Content.php +++ b/src/Content.php @@ -81,7 +81,7 @@ class Content implements TemplateInterface { foreach ($resource as $resKey => $resVal){ $this->{$resKey} = $resVal; } - if(empty($incFile) || !file_exists(ContentData::$subtemplatePath.$incFile)) throw new AppError("Empty inc file ".$incFile); + if(empty($incFile) || !file_exists(ContentData::$subtemplatePath.$incFile)) throw new AppError("Inc file ".$incFile." is not found"); ob_start(); include ContentData::$subtemplatePath.$incFile; $out = ob_get_contents(); ob_end_clean(); return $out; }