diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/HomeController.php index 61967435fb..d87d0e6e4a 100644 --- a/app/Http/Controllers/HomeController.php +++ b/app/Http/Controllers/HomeController.php @@ -3,6 +3,7 @@ use Artisan; use Carbon\Carbon; use Config; +use FireflyIII\Exceptions\FireflyException; use FireflyIII\Models\Tag; use FireflyIII\Repositories\Account\AccountRepositoryInterface as ARI; use Input; @@ -10,6 +11,7 @@ use Preferences; use Session; use Steam; + /** * Class HomeController * @@ -25,6 +27,11 @@ class HomeController extends Controller parent::__construct(); } + public function displayError() { + throw new FireflyException('A very simple test error.'); + } + + public function dateRange() { $start = new Carbon(Input::get('start')); diff --git a/app/Http/routes.php b/app/Http/routes.php index ddb5985e80..5e16686d9a 100644 --- a/app/Http/routes.php +++ b/app/Http/routes.php @@ -22,6 +22,10 @@ Route::group( Route::post('/password/reset', 'Auth\PasswordController@reset'); + // display error: + Route::get('/error', 'HomeController@displayError'); + + } );