Skip to content

Commit 81b5b67

Browse files
committed
Fix DAG error message bug
1 parent cddd18f commit 81b5b67

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

R/classicProcess.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1490,7 +1490,7 @@ ClassicProcess <- function(jaspResults, dataset = NULL, options) {
14901490
.procResultsFitModel <- function(container, dataset, options, modelOptions) {
14911491
# Check if graph has error message
14921492
if (!.procCheckGraph(container[["graph"]]$object) && jaspBase::isTryError(container[["graph"]]$object)) {
1493-
return(.procEstimationMsg())
1493+
return(jaspBase::.extractErrorMessage(container[["graph"]]$object))
14941494
}
14951495

14961496
# Should model be fitted?

tests/testthat/test-classic-process-integration-general.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1405,7 +1405,7 @@ test_that("Directed acyclic graph error message works", {
14051405
set.seed(1)
14061406
results <- jaspTools::runAnalysis("ClassicProcess", "debug.csv", options)
14071407

1408-
refMsg <- jaspProcess:::.procEstimationMsg(jaspProcess:::.procDagMsg())
1408+
refMsg <- jaspProcess:::.procDagMsg()
14091409

14101410
msg <- results[["results"]][["parEstContainer"]][["collection"]][["parEstContainer_Model 1"]][["collection"]][["parEstContainer_Model 1_pathCoefficientsTable"]][["error"]][["errorMessage"]]
14111411
expect_equal(msg, refMsg)

0 commit comments

Comments
 (0)