Skip to content

Commit

Permalink
Ensure message box is shown for build errors
Browse files Browse the repository at this point in the history
Fixes regression from fix to #908.
  • Loading branch information
glopesdev committed Sep 3, 2022
1 parent 51f7cbc commit 724b2e0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Bonsai.Editor/EditorForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1207,10 +1207,10 @@ void StartWorkflow(bool debug)
running = Observable.Using(
() =>
{
var runtimeWorkflow = workflowBuilder.Workflow.BuildObservable();
var shutdown = ShutdownSequence();
try
{
var runtimeWorkflow = workflowBuilder.Workflow.BuildObservable();
Invoke((Action)(() =>
{
statusTextLabel.Text = Resources.RunningStatus;
Expand All @@ -1219,14 +1219,14 @@ void StartWorkflow(bool debug)
editorSite.OnWorkflowStarted(EventArgs.Empty);
Activate();
}));
return new WorkflowDisposable(runtimeWorkflow, shutdown);
}
catch
catch (Exception ex)
{
HandleWorkflowError(ex);
shutdown.Dispose();
throw;
}

return new WorkflowDisposable(runtimeWorkflow, shutdown);
},
resource => resource.Workflow.TakeUntil(workflowBuilder.Workflow
.InspectErrorsEx()
Expand Down

0 comments on commit 724b2e0

Please sign in to comment.