From b6d3c7123ace2e128f08912a27f887944f936672 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sun, 12 Sep 2021 10:43:52 +1000 Subject: [PATCH] Generic exception renderer --- app/Exceptions/SystemError.php | 24 ++++++++++++++++++++++++ routes/client.php | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 app/Exceptions/SystemError.php diff --git a/app/Exceptions/SystemError.php b/app/Exceptions/SystemError.php new file mode 100644 index 000000000000..f15cf8cf1333 --- /dev/null +++ b/app/Exceptions/SystemError.php @@ -0,0 +1,24 @@ + $this->getMessage(), + 'code' => $this->getCode(), + ]); + + + } +} diff --git a/routes/client.php b/routes/client.php index 65590aa78c1e..16cb0679d4a2 100644 --- a/routes/client.php +++ b/routes/client.php @@ -98,7 +98,7 @@ Route::group(['middleware' => ['invite_db'], 'prefix' => 'client', 'as' => 'clie Route::get('quote/{invitation_key}/download_pdf', 'QuoteController@downloadPdf')->name('quote.download_invitation_key'); Route::get('credit/{invitation_key}/download_pdf', 'CreditController@downloadPdf')->name('credit.download_invitation_key'); Route::get('{entity}/{invitation_key}/download', 'ClientPortal\InvitationController@routerForDownload'); - Route::get('{entity}/{client_hash}/{invitation_key}', 'ClientPortal\InvitationController@routerForIframe')->name('invoice.client_hash_and_invitation_key'); //should never need this + // Route::get('{entity}/{client_hash}/{invitation_key}', 'ClientPortal\InvitationController@routerForIframe')->name('invoice.client_hash_and_invitation_key'); //should never need this });