Fix new file being leftover if require in new dir fails to resolve requirements
parent
b42a897ebe
commit
1cfdaf43f1
|
@ -206,6 +206,8 @@ EOT
|
|||
);
|
||||
} catch (\Exception $e) {
|
||||
if ($this->newlyCreated) {
|
||||
$this->revertComposerFile(false);
|
||||
|
||||
throw new \RuntimeException('No composer.json present in the current directory ('.$this->file.'), this may be the cause of the following exception.', 0, $e);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue