mirror of
https://github.com/shivammathur/setup-php.git
synced 2025-09-08 05:44:07 +07:00
Improve Write-Error messages
This commit is contained in:
@ -17,7 +17,7 @@ Function Edit-ComposerConfig() {
|
||||
php -r "try {`$p=new Phar('$tool_path.phar', 0);exit(0);} catch(Exception `$e) {exit(1);}"
|
||||
if ($? -eq $False) {
|
||||
Add-Log "$cross" "composer" "Could not download composer"
|
||||
Write-Error "Error" -ErrorAction Stop
|
||||
Write-Error "Could not download composer" -ErrorAction Stop
|
||||
}
|
||||
New-Item -ItemType Directory -Path $composer_bin -Force > $null 2>&1
|
||||
if (-not(Test-Path $composer_json)) {
|
||||
|
Reference in New Issue
Block a user