diff --git a/NEWS.md b/NEWS.md index 40e6ac725c..0828f7957f 100644 --- a/NEWS.md +++ b/NEWS.md @@ -3,6 +3,8 @@ * Fixed bug where discrete scales could not map aesthetics only consisting of `NA`s (#5623) +* Facet evaluation is better at dealing with inherited errors + (@teunbrand, #5670). # ggplot2 3.5.0 diff --git a/R/facet-.R b/R/facet-.R index c2d7dc8df7..7c6c749cab 100644 --- a/R/facet-.R +++ b/R/facet-.R @@ -477,7 +477,7 @@ eval_facet <- function(facet, data, possible_columns = NULL) { mask <- new_data_mask(env) mask$.data <- as_data_pronoun(mask) - tryCatch( + try_fetch( eval_tidy(facet, mask), ggplot2_missing_facet_var = function(e) NULL )