Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/Command/FileRenameCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
{
Expand All @@ -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,
Expand Down