Avoid returning failing status code if the composer audit fails in diagnose command, refs #12196
parent
ace7a3ffa8
commit
99430ca669
|
@ -595,11 +595,11 @@ EOT
|
||||||
$io = new BufferIO();
|
$io = new BufferIO();
|
||||||
$result = $auditor->audit($io, $repoSet, $packages, Auditor::FORMAT_TABLE, true, [], Auditor::ABANDONED_IGNORE);
|
$result = $auditor->audit($io, $repoSet, $packages, Auditor::FORMAT_TABLE, true, [], Auditor::ABANDONED_IGNORE);
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
return '<warning>Failed performing audit: '.$e->getMessage().'</>';
|
return '<highlight>Failed performing audit: '.$e->getMessage().'</>';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($result > 0) {
|
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;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue