Updated error message

This commit is contained in:
tyler 2024-01-19 13:25:48 -05:00
parent c0d02481e3
commit 735a171e67

View file

@ -249,7 +249,7 @@ func (c *Client) StartChatStream(handle func(cv ChatView), handleError func(err
err := sseCl.SubscribeChan("", sseEvent)
if err != nil {
cancel()
return pkgErr("error subscribing to chat stream", err)
return pkgErr(fmt.Sprintf("error subscribing to chat stream %s", c.chatInfo.StreamUrl()), err)
}
streamCtx, stop := context.WithCancel(context.Background())