Skip to content

Commit

Permalink
more user friendly error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Kucharssim committed Nov 29, 2023
1 parent 2b6997f commit c165fbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/regressionloglinearbayesian.R
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ RegressionLogLinearBayesianInternal <- function(jaspResults, dataset = NULL, opt
if(grepl(pattern = "the leading minor of order [0-9]+ is not positive definite", x = msg)) {
msg <- gettext("Cannot compute the results; a numerical error occurred during sampling. Try to change (e.g., simplify) the model or adjust priors.")
}
stop(gettextf("R Package error: %s", msg))
stop(gettextf("R package 'conting' error: %s <br> It is possible that a numerical error occured during sampling. Try to change (e.g., simplify) the model, adjust priors, change seed, or change the number of MCMC samples.", msg))
}
}

Expand Down

0 comments on commit c165fbb

Please sign in to comment.