Skip to content
Snippets Groups Projects

Issue #3247479: Allow LockFileValidator results to carry multiple messages, and improve their text

3 files
+ 8
8
Compare changes
  • Side-by-side
  • Inline
Files
3
  • 059443b7
    Issue #3341224 by omkar.podey, Wim Leers, phenaproxima: Always catch... · 059443b7
    omkar podey authored
    Issue #3341224 by omkar.podey, Wim Leers, phenaproxima: Always catch \Throwable, not \Exception, and pass the old exception when re-throwing
@@ -45,8 +45,8 @@ final class ComposerSettingsValidator implements EventSubscriberInterface {
try {
$setting = (int) $this->inspector->getConfig('secure-http', $dir);
}
catch (\Exception $exception) {
$event->addErrorFromThrowable($exception, $this->t('Unable to determine Composer <code>secure-http</code> setting.'));
catch (\Throwable $throwable) {
$event->addErrorFromThrowable($throwable, $this->t('Unable to determine Composer <code>secure-http</code> setting.'));
return;
}
if ($setting !== 1) {
Loading