From 45ca5d60383cbe270624c713b916da29af7ba88f Mon Sep 17 00:00:00 2001 From: Jeff Halter <868228+jhalter@users.noreply.github.com> Date: Mon, 17 Jun 2024 13:50:28 -0700 Subject: Fix io.Reader implementations and wrap more errors --- hotline/client_conn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hotline/client_conn.go') diff --git a/hotline/client_conn.go b/hotline/client_conn.go index e21d8b1..c886dfc 100644 --- a/hotline/client_conn.go +++ b/hotline/client_conn.go @@ -81,7 +81,7 @@ func (cc *ClientConn) handleTransaction(transaction Transaction) error { transactions, err := handler.Handler(cc, &transaction) if err != nil { - return err + return fmt.Errorf("error handling transaction: %w", err) } for _, t := range transactions { cc.Server.outbox <- t -- cgit