Improve the error message line

This commit is contained in:
Markus Fleschutz
2022-04-13 12:06:32 +02:00
parent 2e86cb0fa4
commit 04738077fe
284 changed files with 293 additions and 294 deletions

View File

@ -24,6 +24,6 @@ try {
& "$PSScriptRoot/give-reply.ps1" "Sorry, can't find Git Extensions."
exit 1
} catch {
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}