Skip to content

Commit

Permalink
cyclic model error message update
Browse files Browse the repository at this point in the history
  • Loading branch information
santikka committed Feb 19, 2024
1 parent 66c0be2 commit 8f63d5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/dynamiteformula.R
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ join_dynamiteformulas <- function(e1, e2) {
topo <- topological_order(dep)
stopifnot_(
length(topo) > 0L,
"Cyclic dependency found in model formula."
"The model must be acyclic."
)
attributes(out) <- c(attributes(e1), attributes(e2))
attr(out, "channel_groups") <- cg
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-errors.R
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ test_that("cyclic dependency fails", {
obs(x ~ z, family = "gaussian")
expect_error(
obs_lhs + obs_rhs,
"Cyclic dependency found in model formula\\."
"The model must be acyclic\\."
)
})

Expand Down

0 comments on commit 8f63d5c

Please sign in to comment.