summaryrefslogtreecommitdiff
path: root/ws_utils.go
diff options
context:
space:
mode:
Diffstat (limited to 'ws_utils.go')
-rw-r--r--ws_utils.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/ws_utils.go b/ws_utils.go
index 949863f..adf4677 100644
--- a/ws_utils.go
+++ b/ws_utils.go
@@ -165,7 +165,7 @@ func propagate(msg string) {
func writeText(ctx context.Context, c *websocket.Conn, msg string) error {
err := c.Write(ctx, websocket.MessageText, []byte(msg))
if err != nil {
- return fmt.Errorf("%w: %w", errWebSocketWrite, err)
+ return wrapError(errWebSocketWrite, err)
}
return nil
}