Skip to content

Commit

Permalink
better warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Jun 14, 2024
1 parent 78a22c8 commit e525674
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions R/compute_variances.R
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,8 @@
if (is.na(mu)) {
if (verbose) {
format_warning(
"Can't calculate model's distribution-specific variance. Results are not reliable."
"Can't calculate model's distribution-specific variance. Results are not reliable.",
"A reason can be that the null model could not be computed manually. Try to fit the null model manually and pass it to `null_model`." # nolint
)
}
return(0)
Expand Down Expand Up @@ -918,7 +919,8 @@
error = function(x) {
if (verbose) {
format_warning(
"Can't calculate model's distribution-specific variance. Results are not reliable."
"Can't calculate model's distribution-specific variance. Results are not reliable.",
paste("The following error occured: ", x$message)
)
}
0
Expand Down

0 comments on commit e525674

Please sign in to comment.