dittodb icon indicating copy to clipboard operation
dittodb copied to clipboard

Use `rlang::abort` for clearer error messages?

Open jonkeane opened this issue 11 months ago • 0 comments

rlang::abort makes for much nicer error messages (see below). So far they haven't been used, but there are only 3 stops, 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
    )

jonkeane avatar Mar 06 '24 23:03 jonkeane