View source: R/error_handling.R
| handle_api_error | R Documentation |
Handle YouTube API errors with context-specific messages
handle_api_error(
error_response,
context_msg = "",
video_id = NULL,
channel_id = NULL
)
error_response |
The error response from the API |
context_msg |
Additional context for the error |
video_id |
Video ID if applicable for better error messages |
channel_id |
Channel ID if applicable for better error messages |
Stops execution with informative error message
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.