X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/85db812feaae5f36ea6214931cec4adb67a9cb39..refs/pull/3698/head:/app/Exceptions/PrettyException.php diff --git a/app/Exceptions/PrettyException.php b/app/Exceptions/PrettyException.php index 8ed135de7..f446442d0 100644 --- a/app/Exceptions/PrettyException.php +++ b/app/Exceptions/PrettyException.php @@ -1,4 +1,6 @@ -getCode() === 0) ? 500 : $this->getCode(); + return response()->view('errors.' . $code, [ - 'message' => $this->getMessage(), + 'message' => $this->getMessage(), 'subtitle' => $this->subtitle, - 'details' => $this->details, + 'details' => $this->details, ], $code); } public function setSubtitle(string $subtitle): self { $this->subtitle = $subtitle; + return $this; } public function setDetails(string $details): self { $this->details = $details; + return $this; } }