diff --git a/build.psm1 b/build.psm1 index 9c359fb1d..6120e7309 100644 --- a/build.psm1 +++ b/build.psm1 @@ -841,7 +841,16 @@ function Get-Mappings { $map = @{} $mapFiles | % { - $rawHashtable = $_ | Get-Content -Raw | ConvertFrom-Json | Convert-PSObjectToHashtable + $file = $_ + try + { + $rawHashtable = $_ | Get-Content -Raw | ConvertFrom-Json | Convert-PSObjectToHashtable + } + catch + { + Write-Error "Exception, when processing $($file.FullName): $_" + } + $mapRoot = Split-Path $_.FullName if ($KeepRelativePaths) { diff --git a/src/Microsoft.PowerShell.ConsoleHost/map.json b/src/Microsoft.PowerShell.ConsoleHost/map.json index 293e288db..472b2f6e6 100644 --- a/src/Microsoft.PowerShell.ConsoleHost/map.json +++ b/src/Microsoft.PowerShell.ConsoleHost/map.json @@ -30,5 +30,5 @@ "monad/src/host/msh/resources/ManagedEntranceStrings.resx": "resources/ManagedEntranceStrings.resx", "monad/src/singleshell/installer/EngineInstaller.cs": "singleshell/installer/EngineInstaller.cs", "monad/src/host/msh/ConsoleHostRawUserInterface.cs": "host/msh/ConsoleHostRawUserInterface.cs", - "monad/src/host/msh/ConsoleHost.cs": "host/msh/ConsoleHost.cs", + "monad/src/host/msh/ConsoleHost.cs": "host/msh/ConsoleHost.cs" }