Some code cleanup [skip ci]

This commit is contained in:
James Cole
2015-05-26 12:08:46 +02:00
parent 349e077802
commit 3af0dd2e3b
5 changed files with 18 additions and 31 deletions

View File

@@ -2,6 +2,7 @@
namespace FireflyIII\Http\Requests;
use App;
use Auth;
use Carbon\Carbon;
use Exception;
@@ -85,7 +86,7 @@ class JournalFormRequest extends Request
$rules['category'] = 'between:1,255';
break;
default:
throw new Exception('Cannot handle ' . $what);
App::abort(500, 'Cannot handle ' . $what);
break;
}