Skip to content

Commit ec204ac

Browse files
committed
docs(pkg-r): Update Error Handling section of chat_append()
Fixes #48
1 parent 8578e67 commit ec204ac

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

pkg-r/R/chat.R

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,8 @@ chat_ui <- function(
182182
#' an error occurs while producing the message (e.g., an iteration in
183183
#' `stream_async` fails), the promise returned by `chat_append` will reject with
184184
#' the error. If the `chat_append` call is the last expression in a Shiny
185-
#' observer, Shiny will see that the observer failed, and end the user session.
186-
#' If you prefer to handle the error gracefully, use [promises::catch()] on the
187-
#' promise returned by `chat_append`.
185+
#' observer, shinychat will log the error message and show a message that the
186+
#' error occurred in the chat UI.
188187
#'
189188
#' @param id The ID of the chat element
190189
#' @param response The message or message stream to append to the chat element.

pkg-r/man/chat_append.Rd

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)