A route that displays an error. Seems quite useless, I know

This commit is contained in:
James Cole 2016-02-11 12:49:04 +01:00
parent df45298c1f
commit 8b1fe26c84
2 changed files with 11 additions and 0 deletions

View File

@ -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'));

View File

@ -22,6 +22,10 @@ Route::group(
Route::post('/password/reset', 'Auth\PasswordController@reset');
// display error:
Route::get('/error', 'HomeController@displayError');
}
);