Skip to content

Commit

Permalink
feat: add timestamp in json error response
Browse files Browse the repository at this point in the history
  • Loading branch information
papac committed Dec 20, 2020
1 parent c0da452 commit 3f78785
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Exceptions/ErrorHandle.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ private function json($exception, $code = null)
$error = [
'message' => $exception->getMessage(),
'code' => $code,
'time' => date('Y-d-m H:i:s')
];

if (app_env("APP_ENV") != "production") {
Expand Down

0 comments on commit 3f78785

Please sign in to comment.