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

Uncaught errors should show class #1426

Closed
hadley opened this issue Aug 18, 2021 · 0 comments · Fixed by #1439
Closed

Uncaught errors should show class #1426

hadley opened this issue Aug 18, 2021 · 0 comments · Fixed by #1439
Labels
conditions feature a feature request or enhancement

Comments

@hadley
Copy link
Member

hadley commented Aug 18, 2021

And maybe other fields if they exist?

library(testthat)
library(rlang)

test_that("uncaught error shows class", {
  abort("Hi!", class = "foobar")
})
#> ── Error (<text>:5:3): uncaught error shows class ──────────────────────────────
#> Error: Hi!

Created on 2021-08-18 by the reprex package (v2.0.0)

@hadley hadley added conditions feature a feature request or enhancement labels Sep 10, 2021
hadley added a commit that referenced this issue Sep 13, 2021
hadley added a commit that referenced this issue Sep 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conditions feature a feature request or enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant