Skip to content

Commit

Permalink
Only show getting started warning for non-global composer load
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed Dec 15, 2020
1 parent eb9616a commit bc31351
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Composer/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ public function createComposer(IOInterface $io, $localConfig = null, $disablePlu
} else {
$message = 'Composer could not find the config file: '.$localConfig;
}
$instructions = 'To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section';
$instructions = $fullLoad ? 'To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section' : '';
throw new \InvalidArgumentException($message.PHP_EOL.$instructions);
}

Expand Down

0 comments on commit bc31351

Please sign in to comment.