1
0
Fork 0

Avoid returning failing status code if the composer audit fails in diagnose command, refs #12196

main
Jordi Boggiano 2024-12-11 11:29:49 +01:00
parent ace7a3ffa8
commit 99430ca669
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -595,11 +595,11 @@ EOT
$io = new BufferIO();
$result = $auditor->audit($io, $repoSet, $packages, Auditor::FORMAT_TABLE, true, [], Auditor::ABANDONED_IGNORE);
} catch (\Throwable $e) {
return '<warning>Failed performing audit: '.$e->getMessage().'</>';
return '<highlight>Failed performing audit: '.$e->getMessage().'</>';
}
if ($result > 0) {
return '<error>Audit found some issues:</>' . PHP_EOL . $io->getOutput();
return '<highlight>Audit found some issues:</>' . PHP_EOL . $io->getOutput();
}
return true;