1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-08-07 23:03:00 +03:00

Added testing to cover debug view

This commit is contained in:
Dan Brown
2021-10-14 17:40:22 +01:00
parent 9b8bb49a33
commit ffa4377e65
2 changed files with 56 additions and 5 deletions

View File

@@ -12,18 +12,15 @@ class WhoopsBookStackPrettyHandler extends Handler
*/
public function handle()
{
// TODO - Assistance View
// Docs links
// Discord Links
// Github Issue Links (With pre-filled search?)
$exception = $this->getException();
echo view('errors.debug', [
'error' => $exception->getMessage(),
'errorClass' => get_class($exception),
'trace' => $exception->getTraceAsString(),
'environment' => $this->getEnvironment(),
])->render();
return Handler::QUIT;
}