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

This commit is contained in:
Taylor Otwell
2011-08-18 12:41:35 -05:00
parent 9c9d0fe530
commit b3a2c3537a

View File

@@ -1,4 +1,4 @@
<?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)