From 1c842bc24f661deeb84d2dfb8a53106ed1d15aef Mon Sep 17 00:00:00 2001 From: Marc Szanto <11840265+Xemdo@users.noreply.github.com> Date: Tue, 12 Mar 2024 15:54:28 -0700 Subject: [PATCH] Updated error message when forwarding WebSocket events --- internal/events/trigger/trigger_event.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/internal/events/trigger/trigger_event.go b/internal/events/trigger/trigger_event.go index 66d21b2..6bc05b7 100644 --- a/internal/events/trigger/trigger_event.go +++ b/internal/events/trigger/trigger_event.go @@ -221,7 +221,10 @@ https://dev.twitch.tv/docs/eventsub/handling-webhook-events#processing-an-event` if strings.EqualFold(p.Transport, "websocket") { client, err := rpc.DialHTTP("tcp", ":44747") if err != nil { - return "", errors.New("Failed to dial RPC handler for WebSocket server. Is it online?\nError: " + err.Error()) + return "", errors.New( + "Failed to dial RPC handler for WebSocket server; It may not be running. See `twitch event websocket --help` for help on starting the WebSocket server.\n" + + "Error: " + err.Error(), + ) } var reply rpc_handler.RPCResponse