From 759ac51f2770d45a143c72fcb4d20f7ddff98add Mon Sep 17 00:00:00 2001 From: Elliot Glaysher Date: Mon, 26 Oct 2020 10:57:07 -0400 Subject: [PATCH] king: Don't hard error on injected event failure. --- pkg/hs/urbit-king/lib/Urbit/Vere/Pier.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/hs/urbit-king/lib/Urbit/Vere/Pier.hs b/pkg/hs/urbit-king/lib/Urbit/Vere/Pier.hs index ffb4a46879..0c918a1770 100644 --- a/pkg/hs/urbit-king/lib/Urbit/Vere/Pier.hs +++ b/pkg/hs/urbit-king/lib/Urbit/Vere/Pier.hs @@ -379,7 +379,8 @@ pier (serf, log) vSlog startedSig injected = do io inject takeMVar okaySig >>= \case - Left goof -> error ("Goof in injected event: " <> show goof) + Left goof -> logError $ display @Text ("Goof in injected event: " <> + tshow goof) Right () -> pure ()