get_error: Get error data from civis_errors

Description Usage Arguments Value Examples

View source: R/await.R

Description

Get error data from civis_errors

Usage

1

Arguments

x

The error, usually from tryCatch

Value

A list containing

f

The function

args

A list of named arguments f was called with

error

The error message from platform (if any)

status

The status

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
 q_id <- queries_post(db_id, query, n_rows, cred_id)[["id"]]
 r <- tryCatch(await(queries_get, id = q_id), error = function(e) e)
 print(r)
 get_error(r)

 r <- try(await(queries_get, id = q_id))
 get_error(r)
 
## End(Not run)

civisanalytics/civis-r documentation built on June 27, 2020, 7:25 a.m.