From 67ec6606ad1cb08ab1c73e5624b61cc0a0fb781f Mon Sep 17 00:00:00 2001 From: Bolek Kulbabinski <1416262+bolekk@users.noreply.github.com> Date: Wed, 14 Aug 2024 19:19:24 -0700 Subject: [PATCH] [Keystone] Return an error from Launcher on invariant validation --- core/capabilities/launcher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/capabilities/launcher.go b/core/capabilities/launcher.go index 3182b192b74..fbf4d918a56 100644 --- a/core/capabilities/launcher.go +++ b/core/capabilities/launcher.go @@ -204,7 +204,7 @@ func (w *launcher) Launch(ctx context.Context, state *registrysyncer.LocalRegist // NOTE: this is enforced on-chain and so should never happen. if len(myWorkflowDONs) > 1 { - w.lggr.Error("invariant violation: node is part of more than one workflowDON: this shouldn't happen.") + return errors.New("invariant violation: node is part of more than one workflowDON") } for _, rcd := range remoteCapabilityDONs {