Commit b3a2c353 by Taylor Otwell

Fix white screen of death error when view doesn't exist.

parent 9c9d0fe5
<?php namespace System;
<?php namespace Laravel;
class View {
......@@ -158,7 +158,7 @@ class View {
if ( ! file_exists($this->path.$view.EXT))
{
throw new \Exception("View [$view] does not exist.");
Exception\Handler::make(new Exception("View [$view] does not exist."))->handle();
}
foreach ($this->data as &$data)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment