diff --git a/R/plot.check_heteroscedasticity.R b/R/plot.check_heteroscedasticity.R index 52d415d5d..4810537b7 100644 --- a/R/plot.check_heteroscedasticity.R +++ b/R/plot.check_heteroscedasticity.R @@ -40,7 +40,7 @@ plot.see_check_heteroscedasticity <- function(x, data = NULL, ...) { }, error = function(e) { # debugging - if (getOption(getOption("easystats_erros", FALSE))) { + if (getOption("easystats_erros", FALSE)) { insight::format_error(e$message) } NULL diff --git a/R/plots.R b/R/plots.R index 701b61abd..42db9555b 100644 --- a/R/plots.R +++ b/R/plots.R @@ -100,7 +100,7 @@ plots <- function(..., .safe_print_plots <- function(pw, ...) { pw_drawn <- tryCatch(print(pw), error = function(e) e) # for debugging, return original error - if (getOption(getOption("easystats_erros", FALSE))) { + if (getOption("easystats_erros", FALSE)) { insight::format_error(pw_drawn$message) } if (inherits(pw_drawn, "simpleError")) {