Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions classes/UpgradeTools/CoreConsoleExecutable.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,16 @@ private function getBaseCommand(): string
];

$returnCode = 0;
$output = [];

foreach ($candidates as $candidate) {
exec($candidate, $null, $returnCode);
exec($candidate, $output, $returnCode);

if (!$returnCode) {
return $candidate;
}
}

throw new CommandLineException('Could not find a valid way to call PrestaShop\'s bin/console. Check your environment PATH or add executable permission on the file.');
throw new CommandLineException("Could not find a valid way to call PrestaShop's bin/console. Check your environment PATH or add executable permission on the file.\n" . implode("\n", $output));
}
}
Loading