aboutsummaryrefslogtreecommitdiff
path: root/wsx.go
diff options
context:
space:
mode:
Diffstat (limited to 'wsx.go')
-rw-r--r--wsx.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/wsx.go b/wsx.go
index fbac598..d27b72f 100644
--- a/wsx.go
+++ b/wsx.go
@@ -30,7 +30,7 @@ import (
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("error writing to connection: %w", err)
+ return fmt.Errorf("%w: %w", errWebSocketWrite, err)
}
return nil
}