diff --git a/app/Console/Commands/CertificatePreflight.php b/app/Console/Commands/CertificatePreflight.php index c93280a47..84032e3dd 100644 --- a/app/Console/Commands/CertificatePreflight.php +++ b/app/Console/Commands/CertificatePreflight.php @@ -139,7 +139,7 @@ public function handle(): int } } - if ($exportPath !== '' && ! empty($allFailures)) { + if ($exportPath !== '') { $path = $this->resolvePath($exportPath); $dir = dirname($path); if (! is_dir($dir) && ! @mkdir($dir, 0775, true) && ! is_dir($dir)) { @@ -164,7 +164,7 @@ public function handle(): int ]); } fclose($fh); - $this->info("Exported failures only: {$path}"); + $this->info(empty($allFailures) ? "Exported (no failures): {$path}" : "Exported failures only: {$path}"); } return self::SUCCESS;