Apply fixes from StyleCI (#372)
This commit is contained in:
parent
7bd14db646
commit
93d79994f8
22 changed files with 43 additions and 32 deletions
|
@ -27,8 +27,8 @@ namespace Pterodactyl\Http\Controllers\API\Admin;
|
|||
use Fractal;
|
||||
use Illuminate\Http\Request;
|
||||
use Pterodactyl\Models\Node;
|
||||
use Pterodactyl\Http\Controllers\Controller;
|
||||
use Pterodactyl\Exceptions\DisplayException;
|
||||
use Pterodactyl\Http\Controllers\Controller;
|
||||
use Pterodactyl\Repositories\NodeRepository;
|
||||
use Pterodactyl\Transformers\Admin\NodeTransformer;
|
||||
use Pterodactyl\Exceptions\DisplayValidationException;
|
||||
|
@ -135,6 +135,7 @@ class NodeController extends Controller
|
|||
], 400);
|
||||
} catch (\Exception $ex) {
|
||||
Log::error($ex);
|
||||
|
||||
return response()->json([
|
||||
'error' => 'An unhandled exception occured while attemping to create this node. Please try again.',
|
||||
], 500);
|
||||
|
@ -163,6 +164,7 @@ class NodeController extends Controller
|
|||
], 400);
|
||||
} catch (\Exception $ex) {
|
||||
Log::error($ex);
|
||||
|
||||
return response()->json([
|
||||
'error' => 'An unhandled exception occured while attemping to delete this node. Please try again.',
|
||||
], 500);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue