Skip to content

Commit

Permalink
[5.x] Improve starter kit installer error handling (#11281)
Browse files Browse the repository at this point in the history
  • Loading branch information
jesseleite authored Dec 18, 2024
1 parent 483a310 commit cb40a70
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/StarterKits/Installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit cb40a70

Please sign in to comment.