]> git.r.bdr.sh - rbdr/mobius/blobdiff - hotline/client_conn.go
Fix io.Reader implementations and wrap more errors
[rbdr/mobius] / hotline / client_conn.go
index e21d8b180e7e004537afca659284f7c2ea76b06f..c886dfcc712e88eed55b99dc3a80c2d22aced448 100644 (file)
@@ -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