Skip to contents

This function extracts the "error" field from a list.

Usage

get_error(x)

Arguments

x

(list) A list with a field named 'error'

Value

The value of the 'error' field

Examples

get_error(list(error = "error message"))
#> [1] "error message"