aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/vendors
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/vendors')
-rw-r--r--scripts/vendors/shared.psm111
1 files changed, 7 insertions, 4 deletions
diff --git a/scripts/vendors/shared.psm1 b/scripts/vendors/shared.psm1
index bc6f6f93c..51f492874 100644
--- a/scripts/vendors/shared.psm1
+++ b/scripts/vendors/shared.psm1
@@ -156,16 +156,19 @@ function Get-GHDLBinary
{ $GHDLBinary = $env:GHDL }
else
{ try
- { write-host "calling which ..."
- $GHDLBinary = (Get-Command "ghdl.exe").Source }
+ { Write-host "Calling Get-Command ..."
+ $GHDLBinary = (Get-Command "ghdl.exe" -ErrorAction Stop).Source }
catch
- { Write-Host "Use adv. options '-GHDL' to set the GHDL executable." -ForegroundColor Red
+ { Write-Host "Cannot find ghdl.exe." -ForegroundColor Red
+ Write-Host "Use adv. options '-GHDL' to set the GHDL executable." -ForegroundColor Red
Exit-CompileScript -1
}
}
if (-not (Test-Path $GHDLBinary -PathType Leaf))
- { Write-Host "Use adv. options '-GHDL' to set the GHDL executable." -ForegroundColor Red
+ {
+ Write-Host "$GHDLBinary is not a file." -ForegroundColor Red
+ Write-Host "Use adv. options '-GHDL' to set the GHDL executable." -ForegroundColor Red
Exit-CompileScript -1
}