Explorar o código

hack/make.ps1: know where we failed

In case of an exception, it makes great sense to print out some
information telling where exactly it happened.

_.InvocationInfo.PositionMessage gives script name, line number,
character position and (depending on the PS version) highlights
the part where error has happened.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Kir Kolyshkin %!s(int64=6) %!d(string=hai) anos
pai
achega
d2788cb2f0
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      hack/make.ps1

+ 1 - 0
hack/make.ps1

@@ -437,6 +437,7 @@ Try {
 }
 Catch [Exception] {
     Write-Host -ForegroundColor Red ("`nERROR: make.ps1 failed:`n$_")
+    Write-Host -ForegroundColor Red ($_.InvocationInfo.PositionMessage)
 
     # More gratuitous ASCII art.
     Write-Host