Skip to content

Commit a13c798

Browse files
authored
Merge pull request #834 from stan-dev/diagnose-method-duplicate-stdout
change duplicate stdout_file to stderr_file
2 parents b1a767a + a289be2 commit a13c798

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/run.R

+2-2
Original file line numberDiff line numberDiff line change
@@ -560,8 +560,8 @@ CmdStanRun$set("private", name = "run_variational_", value = .run_other)
560560
if (file.exists(stdout_file)) {
561561
cat(readLines(stdout_file), sep = "\n")
562562
}
563-
if (file.exists(stdout_file)) {
564-
cat(readLines(stdout_file), sep = "\n")
563+
if (file.exists(stderr_file)) {
564+
cat(readLines(stderr_file), sep = "\n")
565565
}
566566
stop(
567567
"Diagnose failed with the status code ", ret$status, "!\n",

0 commit comments

Comments
 (0)