Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Mar 4, 2024
1 parent d6c14af commit 88c1201
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/plot.check_heteroscedasticity.R
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Check warning on line 44 in R/plot.check_heteroscedasticity.R

View check run for this annotation

Codecov / codecov/patch

R/plot.check_heteroscedasticity.R#L43-L44

Added lines #L43 - L44 were not covered by tests
}
NULL
Expand Down
2 changes: 1 addition & 1 deletion R/plots.R
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Check warning on line 104 in R/plots.R

View check run for this annotation

Codecov / codecov/patch

R/plots.R#L103-L104

Added lines #L103 - L104 were not covered by tests
}
if (inherits(pw_drawn, "simpleError")) {
Expand Down

0 comments on commit 88c1201

Please sign in to comment.