diff --git a/plugins/VoiceAttack-base/base.cs b/plugins/VoiceAttack-base/base.cs index 98ed4a5..5240bd6 100644 --- a/plugins/VoiceAttack-base/base.cs +++ b/plugins/VoiceAttack-base/base.cs @@ -60,22 +60,23 @@ namespace alterNERDtive string errorMessage = ""; p.Start(); - string output = p.StandardOutput.ReadToEnd(); + string stdout = p.StandardOutput.ReadToEnd(); + string stderr = p.StandardError.ReadToEnd(); p.WaitForExit(); switch (p.ExitCode) { case 0: - distance = decimal.Parse(output); + distance = decimal.Parse(stdout); break; case 1: case 2: error = true; - Log.Error(output); - errorMessage = output; + Log.Error(stderr); + errorMessage = stderr; break; default: error = true; - Log.Error(output); + Log.Error(stderr); errorMessage = "Unrecoverable error in plugin."; break; diff --git a/plugins/VoiceAttack-base/util.cs b/plugins/VoiceAttack-base/util.cs index 8883278..b3c2be7 100644 --- a/plugins/VoiceAttack-base/util.cs +++ b/plugins/VoiceAttack-base/util.cs @@ -19,7 +19,7 @@ namespace alterNERDtive.util p.StartInfo.Arguments = arguments; p.StartInfo.WindowStyle = ProcessWindowStyle.Hidden; p.StartInfo.RedirectStandardOutput = true; - //p.StartInfo.RedirectStandardError = true; + p.StartInfo.RedirectStandardError = true; p.StartInfo.UseShellExecute = false; p.StartInfo.CreateNoWindow = true; return p;