Fix exception reporting

This commit is contained in:
Andrew Schwartzmeyer
2015-11-04 15:09:29 -08:00
parent c3b6ff1b4e
commit 3812359153
+2 -1
View File
@@ -205,7 +205,8 @@ namespace Microsoft.Samples.PowerShell.Host
this.currentPowerShell.Runspace = this.myRunSpace;
// TODO: Find out where this is set in the Monad host code and set all defaults that way
this.currentPowerShell.AddScript(string.Format("(Get-PSProvider 'FileSystem').Home = '{0}'",Environment.GetEnvironmentVariable("HOME")));
// note that this breaks exception reporting for unknown reasons
// this.currentPowerShell.AddScript(string.Format("(Get-PSProvider 'FileSystem').Home = '{0}'",Environment.GetEnvironmentVariable("HOME")));
this.currentPowerShell.AddScript(cmd);
// Add the default outputter to the end of the pipe and then call the