Skip to content

Commit

Permalink
Fixed exception when view not found
Browse files Browse the repository at this point in the history
  • Loading branch information
lonnieezell committed Jun 23, 2017
1 parent 3e3db58 commit a1f71ea
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions system/View/View.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@
/**
* Class View
*
* @todo integrate parsing somehow
*
* @package CodeIgniter\View
*/
class View implements RendererInterface
Expand Down Expand Up @@ -175,7 +173,7 @@ public function render(string $view, array $options = null, $saveData = null): s
// locateFile will return an empty string if the file cannot be found.
if (empty($file))
{
throw new \InvalidArgumentException('View file not found: '.$file);
throw new \InvalidArgumentException('View file not found: '.$view);
}

// Make our view data available to the view.
Expand Down

0 comments on commit a1f71ea

Please sign in to comment.