Fix white screen of death error when view doesn't exist.
This commit is contained in:
parent
9c9d0fe530
commit
b3a2c3537a
|
|
@ -1,4 +1,4 @@
|
||||||
<?php namespace System;
|
<?php namespace Laravel;
|
||||||
|
|
||||||
class View {
|
class View {
|
||||||
|
|
||||||
|
|
@ -158,7 +158,7 @@ public function get()
|
||||||
|
|
||||||
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)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue