From 381235915348d372fbca766196bd2b5016fed5f5 Mon Sep 17 00:00:00 2001 From: Andrew Schwartzmeyer Date: Tue, 3 Nov 2015 14:14:10 -0800 Subject: [PATCH] Fix exception reporting --- src/host/main.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/host/main.cs b/src/host/main.cs index 7201cbbbb8..988c033647 100644 --- a/src/host/main.cs +++ b/src/host/main.cs @@ -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