dittodb
dittodb copied to clipboard
Use `rlang::abort` for clearer error messages?
rlang::abort
makes for much nicer error messages (see below). So far they haven't been used, but there are only 3 stop
s, so would be easy to transition those.
rlang::abort(
message = c("Database capture failed",
"*" = "The database connection object was created before calling 'start_db_capturing()'",
"*" = "Please close the connection and ensure it's created after calling 'start_db_capturing()'."),
call = NULL
)