mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
More consistent error handling.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<?php namespace FireflyIII\Http\Controllers;
|
||||
|
||||
use Carbon\Carbon;
|
||||
use FireflyIII\Exceptions\FireflyException;
|
||||
use FireflyIII\Helpers\Report\ReportHelperInterface;
|
||||
use FireflyIII\Models\Account;
|
||||
use FireflyIII\Repositories\Account\AccountRepositoryInterface as ARI;
|
||||
@@ -83,8 +84,7 @@ class ReportController extends Controller
|
||||
{
|
||||
// throw an error if necessary.
|
||||
if ($end < $start) {
|
||||
|
||||
return view('error')->with('message', 'End date cannot be before start date, silly!');
|
||||
throw new FireflyException('End date cannot be before start date, silly!')
|
||||
}
|
||||
|
||||
// lower threshold
|
||||
|
||||
Reference in New Issue
Block a user