54b6fb5ebd
Also corrects API format to maintain JSONAPI spec
20 lines
483 B
PHP
20 lines
483 B
PHP
<?php
|
|
|
|
namespace Pterodactyl\Exceptions\Repository;
|
|
|
|
class RecordNotFoundException extends RepositoryException
|
|
{
|
|
/**
|
|
* Handle request to render this exception to a user. Returns the default
|
|
* 404 page view.
|
|
*
|
|
* @param \Illuminate\Http\Request $request
|
|
* @return \Illuminate\Http\Response
|
|
*/
|
|
public function render($request)
|
|
{
|
|
if (! config('app.debug')) {
|
|
return response()->view('errors.404', [], 404);
|
|
}
|
|
}
|
|
}
|