R/rethrow.R

Defines functions rethrow_error_from_rapi

rethrow_error_from_rapi <- function(e, call) {
  # https://github.com/duckdb/duckdb-r/issues/519
  # After moving all error messages to JSON, we can parse them
  # and return rich error information to R.
  # For now, we just rethrow the error message as is, this gets us
  # the caller.

  msg <- conditionMessage(e)
  rlang::abort(msg, call = call)
}

Try the duckdb package in your browser

Any scripts or data that you put into this service are public.

duckdb documentation built on Oct. 30, 2024, 5:06 p.m.