Fix wrong debug message show

This commit is contained in:
crazywhalecc 2026-02-03 10:05:28 +08:00
parent fddcdb8796
commit e732543bd7
No known key found for this signature in database
GPG Key ID: 1F4BDD59391F2680

View File

@ -438,7 +438,7 @@ class ArtifactDownloader
break;
}
}
$vvv = ApplicationContext::isDebug() ? "\nIf the problem persists, consider using `-vvv` to enable verbose mode, and disable parallel downloading for more details." : '';
$vvv = !ApplicationContext::isDebug() ? "\nIf the problem persists, consider using `-vvv` to enable verbose mode, or disable parallel downloading for more details." : '';
throw new DownloaderException("Download artifact '{$artifact->getName()}' failed. Please check your internet connection and try again.{$vvv}");
}