Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use rlang::abort for clearer error messages? #187

Open
jonkeane opened this issue Mar 6, 2024 · 0 comments
Open

Use rlang::abort for clearer error messages? #187

jonkeane opened this issue Mar 6, 2024 · 0 comments

Comments

@jonkeane
Copy link
Collaborator

jonkeane commented Mar 6, 2024

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
    )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant