Merge branch 'develop' into feature/api-v1
This commit is contained in:
commit
46d7ba7585
32 changed files with 247 additions and 201 deletions
|
@ -65,7 +65,7 @@ class DisplayException extends PterodactylException
|
|||
if ($request->expectsJson()) {
|
||||
return response()->json(Handler::convertToArray($this, [
|
||||
'detail' => $this->getMessage(),
|
||||
]), 500);
|
||||
]), method_exists($this, 'getStatusCode') ? $this->getStatusCode() : 500);
|
||||
}
|
||||
|
||||
app()->make(AlertsMessageBag::class)->danger($this->getMessage())->flash();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue