Skip to contents

Expose errors of the response

Usage

retrieve_errors(expr = NULL)

Arguments

expr

An expression that might cause an error. If NULL it looks for the last error.

Examples

if (FALSE){
  new_rule <- stream_add_rule(list(value = "#rstats", tag = "rstats1"))
  stream_add_rule(list(value = "#rstats", tag = "rstats2")) # ERROR
  # See the full information provided by the API:
  retrieve_errors(stream_add_rule(list(value = "#rstats", tag = "rstats2")))
  retrieve_errors()
}