From 9f1987b3febe893f29a789b9a29be78d8ab57a1a Mon Sep 17 00:00:00 2001 From: Kevin Pfeifer Date: Wed, 17 Jun 2026 18:52:07 +0200 Subject: [PATCH] fix fatal error because FatalErrorException was not found --- src/Command/FileRenameCommand.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Command/FileRenameCommand.php b/src/Command/FileRenameCommand.php index 54b5bb14..1888df98 100644 --- a/src/Command/FileRenameCommand.php +++ b/src/Command/FileRenameCommand.php @@ -21,6 +21,7 @@ use Cake\Console\ConsoleIo; use Cake\Console\ConsoleOptionParser; use Cake\Core\Configure; +use Cake\Core\Exception\CakeException; use DirectoryIterator; use RecursiveDirectoryIterator; use RecursiveIteratorIterator; @@ -304,7 +305,7 @@ protected function renameWithCasing(string $source, string $dest): void * @param string $source Source path. * @param string $dest Destination path. * @return void - * @throws \Cake\Error\FatalErrorException When we're unable to move the folder via git. + * @throws \Cake\Core\Exception\CakeException When we're unable to move the folder via git. */ protected function rename(string $source, string $dest): void { @@ -327,7 +328,7 @@ protected function rename(string $source, string $dest): void $returnVar = null; $lastLine = exec("git mv $source $dest", $gitOutput, $returnVar); if ($returnVar) { - throw new FatalErrorException(sprintf( + throw new CakeException(sprintf( 'Unable to move: %s to : %s - Reason: %s - Hint: Maybe you have uncommited changes in git.', $source, $dest,