Fix white screen of death error when view doesn't exist.
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
<?php namespace System;
|
<?php namespace Laravel;
|
||||||
|
|
||||||
class View {
|
class View {
|
||||||
|
|
||||||
@@ -158,7 +158,7 @@ class View {
|
|||||||
|
|
||||||
if ( ! file_exists($this->path.$view.EXT))
|
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)
|
foreach ($this->data as &$data)
|
||||||
|
|||||||
Reference in New Issue
Block a user