diff --git a/R/plot.check_heteroscedasticity.R b/R/plot.check_heteroscedasticity.R index 6809f114d..e982cac3e 100644 --- a/R/plot.check_heteroscedasticity.R +++ b/R/plot.check_heteroscedasticity.R @@ -48,7 +48,7 @@ plot.see_check_heteroscedasticity <- function(x, }, error = function(e) { # debugging - if (getOption("easystats_erros", FALSE)) { + if (getOption("easystats_errors", FALSE)) { insight::format_error(e$message) } NULL diff --git a/R/plots.R b/R/plots.R index 2b6df522f..5f60a874a 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("easystats_erros", FALSE)) { + if (getOption("easystats_errors", FALSE)) { insight::format_error(pw_drawn$message) } if (inherits(pw_drawn, "simpleError")) {