Fix error handling for large files (and endpoints called as non-json)

This commit is contained in:
Dane Everitt 2020-04-06 21:59:14 -07:00
parent 7f2b477538
commit f9878d842c
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
4 changed files with 21 additions and 12 deletions

View file

@ -1,11 +1,4 @@
<?php
/**
* Pterodactyl - Panel
* Copyright (c) 2015 - 2017 Dane Everitt <dane@daneeveritt.com>.
*
* This software is licensed under the terms of the MIT license.
* https://opensource.org/licenses/MIT
*/
namespace Pterodactyl\Exceptions\Http\Server;
@ -13,4 +6,11 @@ use Pterodactyl\Exceptions\DisplayException;
class FileSizeTooLargeException extends DisplayException
{
/**
* FileSizeTooLargeException constructor.
*/
public function __construct()
{
parent::__construct('The file you are attempting to open is too large to view in the file editor.');
}
}