/**
* @param bool $jsonFile
* @param bool $lockFile
* @param string $errorMessage
*
* @throws ComposerFilesNotFoundException *
*/
private function executeTool($jsonFile, $lockFile, $errorMessage)
{
if (true === $jsonFile && false === $lockFile) {
$this->output->writeln($this->outputMessage->getFailMessage());
$this->output->writeln(BadJobLogoResponse::paint($errorMessage));
throw new ComposerFilesNotFoundException();
}
}