Skip to content

Commit ada48fe

Browse files
committed
cleancode
1 parent 5a5a676 commit ada48fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/View/Engine/Simple.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function render($path, array $vars = null)
2626
{
2727
$template = $this->view->getViewsDir() . $path;
2828
if (!is_file($template)) {
29-
throw new \Exception("Template file not found: $template.");
29+
throw new \InvalidArgumentException("Template file not found: $template.");
3030
}
3131

3232
// 设置视图变量

0 commit comments

Comments
 (0)