mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-07-05 15:10:05 +02:00
Improve the error message line
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user