mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-01 14:06:15 +00:00
20 lines
392 B
PHP
20 lines
392 B
PHP
<?php
|
|
|
|
namespace App\Exceptions;
|
|
|
|
use Exception;
|
|
use Illuminate\Http\RedirectResponse;
|
|
use Illuminate\Http\Request;
|
|
|
|
class FailedToDeployGitHook extends Exception
|
|
{
|
|
public function render(Request $request): ?RedirectResponse
|
|
{
|
|
if ($request->header('X-Inertia')) {
|
|
return back()->with('error', 'Failed to deploy git hook.');
|
|
}
|
|
|
|
return null;
|
|
}
|
|
}
|