mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-10 10:02:33 +03:00
Change $exception to $e for consistency
This commit is contained in:
parent
658ac78d8f
commit
14ae6b24fa
1 changed files with 4 additions and 4 deletions
|
@ -146,14 +146,14 @@ if ( ! function_exists('json_exception'))
|
||||||
*
|
*
|
||||||
* json_exception($exception); // Add this in a catch block to return the exception information.
|
* json_exception($exception); // Add this in a catch block to return the exception information.
|
||||||
*
|
*
|
||||||
* @param Throwable $exception
|
* @param Throwable $e
|
||||||
*/
|
*/
|
||||||
function json_exception(Throwable $exception)
|
function json_exception(Throwable $e)
|
||||||
{
|
{
|
||||||
json_response([
|
json_response([
|
||||||
'success' => FALSE,
|
'success' => FALSE,
|
||||||
'message' => $exception->getMessage(),
|
'message' => $e->getMessage(),
|
||||||
'trace' => config('debug') ? $exception->getTrace() : []
|
'trace' => config('debug') ? $e->getTrace() : []
|
||||||
], 500);
|
], 500);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue