From f1183fa62e34bc9600cb2633fbc3e17362033949 Mon Sep 17 00:00:00 2001 From: Jesse Leite Date: Wed, 18 Dec 2024 11:17:09 -0500 Subject: [PATCH] Move this earlier, in case github oauth fails, etc. --- src/StarterKits/Installer.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/StarterKits/Installer.php b/src/StarterKits/Installer.php index 448b07d2c8..8554fad327 100644 --- a/src/StarterKits/Installer.php +++ b/src/StarterKits/Installer.php @@ -631,15 +631,15 @@ protected function restoreComposerJson(): self */ public function rollbackWithError(string $error, ?string $output = null): void { + if ($output) { + $this->console->line($this->tidyComposerErrorOutput($output)); + } + $this ->removeStarterKit() ->restoreComposerJson() ->removeComposerJsonBackup(); - if ($output) { - $this->console->line($this->tidyComposerErrorOutput($output)); - } - throw new StarterKitException($error); }