diff --git a/Bonsai.Editor/WorkflowRunner.cs b/Bonsai.Editor/WorkflowRunner.cs index dae7dfca..8af0ae44 100644 --- a/Bonsai.Editor/WorkflowRunner.cs +++ b/Bonsai.Editor/WorkflowRunner.cs @@ -81,7 +81,7 @@ editorSettings.Tag is ExpressionBuilder builder && Application.Exit(); }).Subscribe( unit => { }, - ex => { Console.WriteLine(ex); }, + ex => { Console.Error.WriteLine(ex); }, () => { }, cts.Token); Application.Run(); @@ -93,7 +93,7 @@ static void RunHeadless(WorkflowBuilder workflowBuilder, Dictionary { }, - ex => { Console.WriteLine(ex); workflowCompleted.Set(); }, + ex => { Console.Error.WriteLine(ex); workflowCompleted.Set(); }, () => workflowCompleted.Set()); workflowCompleted.WaitOne(); } diff --git a/Bonsai.Player/Program.cs b/Bonsai.Player/Program.cs index 63a425b4..ee0d1aab 100644 --- a/Bonsai.Player/Program.cs +++ b/Bonsai.Player/Program.cs @@ -34,7 +34,7 @@ static void Main(string[] args) var workflowCompleted = new ManualResetEvent(false); workflowBuilder.Workflow.BuildObservable().Subscribe( unit => { }, - ex => { Console.WriteLine(ex); workflowCompleted.Set(); }, + ex => { Console.Error.WriteLine(ex); workflowCompleted.Set(); }, () => workflowCompleted.Set()); workflowCompleted.WaitOne(); }