Browse Source

Update Sophia.psm1

pull/240/head
Dmitry Nefedov 3 years ago
committed by GitHub
parent
commit
b8f6e6fb4a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      Sophia/Windows 11/Module/Sophia.psm1

12
Sophia/Windows 11/Module/Sophia.psm1

@ -11815,13 +11815,13 @@ function Errors
{
if ($Global:Error)
{
# Some errors may have the Windows nature and don't have a path to any of the module's files
$ErrorInFile = if ($_.InvocationInfo.PSCommandPath)
{
Split-Path -Path $_.InvocationInfo.PSCommandPath -Leaf
}
($Global:Error | ForEach-Object -Process {
# Some errors may have the Windows nature and don't have a path to any of the module's files
$ErrorInFile = if ($_.InvocationInfo.PSCommandPath)
{
Split-Path -Path $_.InvocationInfo.PSCommandPath -Leaf
}
[PSCustomObject]@{
$Localization.ErrorsLine = $_.InvocationInfo.ScriptLineNumber
$Localization.ErrorsFile = $ErrorInFile

Loading…
Cancel
Save