mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-03 06:56:15 +00:00
#591 - sites
This commit is contained in:
@ -3,8 +3,17 @@
|
||||
namespace App\Exceptions;
|
||||
|
||||
use Exception;
|
||||
use Illuminate\Http\RedirectResponse;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class FailedToDestroyGitHook extends Exception
|
||||
{
|
||||
//
|
||||
public function render(Request $request): ?RedirectResponse
|
||||
{
|
||||
if ($request->header('X-Inertia')) {
|
||||
return back()->with('error', 'Failed to destroy git hook.');
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user